We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c11e22 commit 5c49d7cCopy full SHA for 5c49d7c
src/main.mlog
@@ -284,7 +284,6 @@ end_instruction__no_overflow:
284
end_instruction_preserve_instret:
285
op add pc pc 4
286
287
-end_instruction_preserve_pc:
288
# halt if the reset switch was manually enabled
289
sensor enabled RESET_SWITCH @enabled
290
jump main notEqual enabled true
@@ -672,9 +671,9 @@ jump_to_target:
672
671
write result REGISTERS arg1
673
674
jump_to_target__no_write:
675
- set pc target
+ op sub pc target 4 # HACK: end_instruction always increments the pc, so set the new pc to target - 4
676
set opcache_var null
677
- jump end_instruction_preserve_pc always
+ jump end_instruction always
678
679
JALR:
680
# I-type: arg1=rd, arg2=rs1, arg3=imm
0 commit comments