Prev: F2CE Up: Map Next: F349
F31E: Routine at F31E
Used by the routine at StartGame.
F31E LD HL,$50E1 HL=50E1 (screen buffer location).
F321 LD B,$14 B=14.
F323 LD C,$04 C=04.
F325 PUSH HL Stash HL on the stack.
F326 SCF Set the carry flag.
F327 RR (HL) Rotate *HL right.
F329 JP C,$F335 Jump to F335 if is lower.
F32C INC H Increment H by one.
F32D DEC C Decrease C by one.
F32E JP NZ,$F326 Jump to F326 if C is not zero.
F331 POP HL Restore HL from the stack.
F332 JP $F323 Jump to F323.
F335 POP HL Restore HL from the stack.
F336 INC HL Increment HL by one.
F337 HALT Halt operation (suspend CPU until the next interrupt).
F338 DJNZ $F323 Decrease counter by one and loop back to F323 until counter is zero.
F33A DEC HL Decrease HL by one.
F33B LD ($D85B),HL Write HL to *D85B.
F33E LD A,$01 Write 01 to *D85D.
F340 LD ($D85D),A
F343 LD A,$14 Write 14 to *D85E.
F345 LD ($D85E),A
F348 RET Return.
Prev: F2CE Up: Map Next: F349