aboutsummaryrefslogtreecommitdiff
path: root/entity/actions.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-11-05 19:42:46 +0900
committerAstatin <[email protected]>2024-11-05 19:42:46 +0900
commit6c8f7c72cb96ce59ffcda5279225381ecb394b4f (patch)
tree941e6b464bd0fe90b325ae792b3a6fdbdc9b40fe /entity/actions.gbasm
parent14ae7d8def1159b395bf1176b351651cbd98ba19 (diff)
Add a jump table macro
Diffstat (limited to 'entity/actions.gbasm')
-rw-r--r--entity/actions.gbasm19
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