dramforever__ has quit [Ping timeout: 268 seconds]
GenTooMan has joined #riscv
mps has quit [Ping timeout: 276 seconds]
toluene has quit [Read error: Connection reset by peer]
toluene7 has joined #riscv
peeps[zen] has quit [Remote host closed the connection]
peepsalot has joined #riscv
mahk has quit [Ping timeout: 255 seconds]
eroux has quit [Ping timeout: 268 seconds]
eroux has joined #riscv
peepsalot has quit [Remote host closed the connection]
peepsalot has joined #riscv
jacklsw has quit [Ping timeout: 268 seconds]
jacklsw has joined #riscv
BootLayer has quit [Quit: Leaving]
wolfshappen has quit [Quit: later]
BootLayer has joined #riscv
dramforever__ has joined #riscv
dramforever_ has quit [Remote host closed the connection]
dramforever__ has quit [Remote host closed the connection]
dramforever__ has joined #riscv
dramforever__ has quit [Remote host closed the connection]
dramforever__ has joined #riscv
mps has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
dor has quit [Ping timeout: 268 seconds]
dramforever_ has joined #riscv
dramforever__ has quit [Ping timeout: 268 seconds]
loggervicky has joined #riscv
dramforever_ has quit [Remote host closed the connection]
dramforever_ has joined #riscv
dramforever__ has joined #riscv
dramforever_ has quit [Read error: Connection reset by peer]
loggervicky has quit [Ping timeout: 268 seconds]
dramforever__ has quit [Remote host closed the connection]
dramforever__ has joined #riscv
mahk has joined #riscv
loggervicky has joined #riscv
cousteau has joined #riscv
<cousteau>
Hi
<cousteau>
Does `jal x0, -4` mean "jump to the previous instruction", or "jump to this instruction because the pc has already moved forward 4 bytes, so you're rewinding it 4 bytes so that it points here again"?
dramforever__ has quit [Remote host closed the connection]
dramforever__ has joined #riscv
Andre_H has joined #riscv
dramforever_ has joined #riscv
dramforever__ has quit [Ping timeout: 268 seconds]
<dramforever_>
cousteau: previous instruction, assuming no stuff like compressed instructions
<dramforever_>
pc is always 'current instruction' for the purposes of pc relative stuffs
<dramforever_>
(i assumed you meant -4 as the actual immediate value. note that if you just do `jal x0, -4` in e.g. gnu as, it might mean 'jump to absolute address -4')
Andre_H has quit [Quit: Leaving.]
<cousteau>
dramforever_: thanks!
aerkiaga has joined #riscv
<cousteau>
Yeah I was assuming 4-byte instructions here...
<cousteau>
dramforever_: oh, my bad
dramforever__ has joined #riscv
<cousteau>
The instruction was 0xFFDFF06FF (opcode = 11011_11 (JAL), rd = 00000 (x0), immediate value = a bit salad that translates to -4)
<cousteau>
Perfect, thanks!
dramforever_ has quit [Ping timeout: 268 seconds]
toluene7 has quit [Read error: Connection reset by peer]
toluene has joined #riscv
dramforever__ has quit [Remote host closed the connection]
dramforever__ has joined #riscv
wolfshappen has joined #riscv
dor has joined #riscv
jmdaemon has quit [Ping timeout: 264 seconds]
dramforever_ has joined #riscv
dramforever__ has quit [Read error: Connection reset by peer]