Prev: 9658 Up: Map Next: 9688
965F: Routine at 965F
Used by the routines at 9211, MainMenu, Debounce_CheckKeys and StartMenu.
965F HALT Halt operation (suspend CPU until the next interrupt).
9660 CALL $9688 Call 9688.
9663 RET Z Return if A is zero.
9664 CP (IY+$65) Compare A with *IY+65.
9667 JR Z,$967C Jump to 967C if BC is equal to C.
9669 OR A Set the bits from A.
966A JR NZ,$966F Jump to 966F if BC is not equal to A.
966C LD ($F865),A Write A to *F865.
966F CP $04 Jump to 965F if A is less than 04.
9671 JR C,$965F
9673 LD ($F865),A Write A to *F865.
9676 LD (IY+$66),$0F Write 0F to *IY+66.
967A OR A Set the bits from A.
967B RET Return.
967C DEC (IY+$66) Decrease *IY+66 by one.
967F JP P,$965F Jump to 965F if A is greater than or equal to A.
9682 LD (IY+$66),$01 Write 01 to *IY+66.
9686 OR A Set the bits from A.
9687 RET Return.
Prev: 9658 Up: Map Next: 9688