[WIP] Conditional jump switch

This commit is contained in:
Dominic Grimm 2022-09-12 18:23:10 +02:00
parent 2e71d9e99e
commit 072653935e
No known key found for this signature in database
GPG key ID: A6C051C716D2CE65
3 changed files with 11 additions and 12 deletions

View file

@ -14,10 +14,9 @@
tlr CORE_REG_A
.endmacro
.macro call_stack_jump, call_stack_jump_arg_0_label
.define call_stack_jump_local_offset, OFFSET
.macro call_stack_jump, call_stack_jump_arg_0_label, call_stack_jump_arg_1_offset
.std_rset CORE_REG_C, call_stack_jump_arg_0_label
.std_rset CORE_REG_D, (call_stack_jump_local_offset + 7)
.std_rset CORE_REG_D, (call_stack_jump_arg_1_offset + 7)
ts call_stack_jump
tlr CORE_REG_PC
.endmacro