Prev: 39414 Up: Map Next: 39440
39415: Interrupt Driven Controls
Used by the routine at InterruptRoutine.
InterruptDrivenControls 39415 LD C,0 C=0.
39417 LD HL,39535 HL=Controls.
39420 PUSH HL Stash HL on the stack.
39421 LD A,(39413) A=*ControlType.
39424 DEC A Decrease A by one.
39425 RET M Return if *ControlType was set to "keyboard" (0).
39426 ADD A,A Multiply A by 2.
39427 LD HL,39440 HL=JumpTable_ControlMethods+A.
39430 ADD A,L
39431 LD L,A
39432 JR NC,InterruptDrivenControls_0 Jump to InterruptDrivenControls_0 if A is greater than or equal to 0.
39434 INC H Increment H by one.
InterruptDrivenControls_0 39435 LD A,(HL) A=*HL.
39436 INC HL Increment HL by one.
39437 LD H,(HL) H=*HL.
39438 LD L,A L=A.
39439 JP (HL) Jump to the address held in *HL.
Prev: 39414 Up: Map Next: 39440