Prev: 5F89 Up: Map Next: 60A3
6074: Print the next sector
Used by the routine at 60C1.
6074 LD A,($5DD1) Get the current sector
6077 CP $09 Are we past sector 8?
6079 JR NZ,$6084 Move on if not
607B CALL $6C17 Give the player a big bonus and go back to sector 1
607E LD A,$01
6080 LD ($5DD1),A
6083 RET
6084 LD DE,$60A3
6087 LD HL,$48CB
608A LD B,$07
608C CALL $6949 Print "SECTOR" in the middle of the screen
608F LD A,($5DD1) Get the current sector, convert from a number to ASCII and put it in the message buffer
6092 ADD A,$30
6094 LD ($5DE9),A
6097 LD DE,$5DE9
609A LD B,$01
609C LD HL,$48D2
609F CALL $6949 Print the sector number
60A2 RET
Prev: 5F89 Up: Map Next: 60A3