diff options
author | Astatin <[email protected]> | 2024-11-05 19:42:46 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2024-11-05 19:42:46 +0900 |
commit | 6c8f7c72cb96ce59ffcda5279225381ecb394b4f (patch) | |
tree | 941e6b464bd0fe90b325ae792b3a6fdbdc9b40fe /entity/actions.gbasm | |
parent | 14ae7d8def1159b395bf1176b351651cbd98ba19 (diff) |
Add a jump table macro
Diffstat (limited to 'entity/actions.gbasm')
-rw-r--r-- | entity/actions.gbasm | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/entity/actions.gbasm b/entity/actions.gbasm index 524c28d..f70c320 100644 --- a/entity/actions.gbasm +++ b/entity/actions.gbasm @@ -30,13 +30,6 @@ Entity_Action: INC HL LD E, (HL) - LD D, $00 - - SLA E - RL D - SLA E - RL D - PUSH HL LD A, L @@ -45,18 +38,8 @@ Entity_Action: LD BC, =Turn_Jump_table LD A, E - ADD C - LD E, A - LD A, D - ADC B - LD D, A - ; This is confusing but this thing is actually CALL DE - LD BC, =Entity_Action.interaction_end - PUSH BC - PUSH DE - RET - Entity_Action.interaction_end: + .JUMP_TABLE POP HL |