Prev: 54575 Up: Map Next: 54647
54598: Print current control keys to screen
Used by the routines at 26926 and 54647.
54598 LD HL,54894 Point HL at list of current keyboard control characters
54601 LD BC,1541 Print LEFT key at (5, 6)...
54604 CALL 54631 ...
54607 LD BC,1554 Print RIGHT key at (18, 6)...
54610 CALL 54631 ...
54613 LD BC,2053 Print JUMP/UP key at (5, 8)...
54616 CALL 54631 ...
54619 LD BC,2066 Print DOWN key at (18, 8)...
54622 CALL 54631 ...
54625 LD BC,2565 Print MENU (FIRE) key at (5, 10)...
54628 JP 54631 ... (see trivia)
54631 PUSH HL Store HL (current position in list of current keyboard control characters)
54632 CALL 54132 Move virtual cursor (bitmap) to display file address for coordinates x=C, y=B and load address into HL
54635 POP HL Restore HL (current position in current keyboard controls)
54636 LD A,(HL) Load current keyboard control character into A
54637 INC HL Advance HL by one byte to next keyboard control
54638 CP 32 If current keyboard control character is not 32 (SPACE)...
54640 JR NZ,54644 ...then skip ahead to 54644
54642 LD A,127 Load A with 127 (index of "SP" graphic in character set)
54644 JP 54097 Print text/graphic character in A and advance bitmap virtual text cursor and return
Prev: 54575 Up: Map Next: 54647