Prev: 99F6 Up: Map Next: 9A10
99F7: Interrupt Driven Controls
Used by the routine at InterruptRoutine.
InterruptDrivenControls 99F7 LD C,$00 C=00.
99F9 LD HL,$9A6F HL=Controls.
99FC PUSH HL Stash HL on the stack.
99FD LD A,($99F5) A=*ControlType.
9A00 DEC A Decrease A by one.
9A01 RET M Return if *ControlType was set to "keyboard" (00).
9A02 ADD A,A Multiply A by 02.
9A03 LD HL,$9A10 HL=JumpTable_ControlMethods+A.
9A06 ADD A,L
9A07 LD L,A
9A08 JR NC,InterruptDrivenControls_0 Jump to InterruptDrivenControls_0 if A is greater than or equal to 00.
9A0A INC H Increment H by one.
InterruptDrivenControls_0 9A0B LD A,(HL) A=*HL.
9A0C INC HL Increment HL by one.
9A0D LD H,(HL) H=*HL.
9A0E LD L,A L=A.
9A0F JP (HL) Jump to the address held in *HL.
Prev: 99F6 Up: Map Next: 9A10