Prev: 8F38 Up: Map Next: 8FAD
8F60: Routine at 8F60
Used by the routine at StartGame.
8F60 LD HL,$A458 HL=A458 (screen co-ordinates).
8F63 CALL PrintLine_7 Call PrintLine_7.
8F66 LD C,$20 C=20.
8F68 LD B,$0A B=0A.
8F6A PUSH HL Stash HL on the stack.
8F6B LD (HL),$00 Write 00 to *HL.
8F6D INC L Increment L by one.
8F6E DJNZ $8F6B Decrease counter by one and loop back to 8F6B until counter is zero.
8F70 POP HL Restore HL from the stack.
8F71 CALL PrintLine_6 Call PrintLine_6.
8F74 DEC C Decrease C by one.
8F75 JR NZ,$8F68 Jump to 8F68 until C is zero.
8F77 LD A,($B7EB) A=*B7EB.
8F7A INC A Increment A by one.
8F7B LD B,A B=A.
8F7C XOR A A=00.
8F7D ADD A,$01 A+=01.
8F7F DAA DAA.
8F80 DJNZ $8F7D Decrease counter by one and loop back to 8F7D until counter is zero.
8F82 LD B,A B=A.
8F83 RRA RRA.
8F84 RRA RRA.
8F85 RRA RRA.
8F86 RRA RRA.
8F87 AND %00001111 Keep only bits 0-3.
8F89 LD ($8FC3),A Write A to *8FC3.
8F8C LD A,B A=B.
8F8D AND %00001111 Keep only bits 0-3.
8F8F LD ($8FC4),A Write A to *8FC4.
8F92 LD A,($B7E6) A=*B7E6.
8F95 INC A Increment A by one.
8F96 LD ($8FB8),A Write A to *8FB8.
8F99 LD DE,$8FAD DE=Messaging_Player.
8F9C LD B,$02 B=02.
8F9E CALL $B796 Call B796.
8FA1 LD A,($B7E5) A=*GameMode.
8FA4 CP $02 Return if A is not equal to 02.
8FA6 RET NZ
8FA7 LD DE,$8FC5 DE=Messaging_GameOn.
8FAA JP PrintLine Jump to PrintLine.
Prev: 8F38 Up: Map Next: 8FAD