Routines |
Prev: 61240 | Up: Map | Next: 61296 |
|
||||
Controller_JumpPunch | 61264 | CALL Controls | Jump to Controller_JumpPunch_Action if "jump/punch" has been pressed. | |
61267 | AND %00010000 | |||
61269 | JR NZ,Controller_JumpPunch_Action | |||
61271 | XOR A | Write 0 to *JumpTable_Pointer. | ||
61272 | LD (53828),A | |||
61275 | JP Action_JumpTable | Jump to Action_JumpTable. | ||
Action the "jump/punch" animation.
|
||||
Controller_JumpPunch_Action | 61278 | LD A,(53828) | A=*JumpTable_Pointer. | |
61281 | SUB 15 | A-=15. | ||
61283 | LD H,0 | Create an offset in HL using A. | ||
61285 | LD L,A | |||
61286 | ADD HL,HL | HL*=2. | ||
61287 | LD DE,61296 | HL+=JumpTable_JumpPunch. | ||
61290 | ADD HL,DE | |||
61291 | LD A,(HL) | Load the low byte of the jump controller address from the "jump/punch" jump table. | ||
61292 | INC HL | Increment the "jump/punch" jump table pointer by one. | ||
61293 | LD H,(HL) | Set the high byte of the jump controller address from the "jump/punch" jump table. | ||
61294 | LD L,A | Set low byte of the jump controller address from A. | ||
61295 | JP (HL) | Jump to the address held by *HL. |
Prev: 61240 | Up: Map | Next: 61296 |