Prev: A50E Up: Map Next: A556
A532: Routine at A532
Used by the routine at A491.
A532 LD DE,($9AC5) DE=*9AC5.
A536 DEC E Decrease E by one.
A537 LD HL,$7800 HL=7800.
A53A LD B,$05 B=05.
A53C PUSH BC Stash BC, HL and DE on the stack.
A53D PUSH HL
A53E PUSH DE
A53F LD A,D A=D.
A540 CP $00 Jump to A54B if A is less than 00.
A542 JR C,$A54B
A544 CP $18 Jump to A54B if A is greater than or equal to 18.
A546 JR NC,$A54B
A548 CALL $A578 Call A578.
A54B POP DE Restore DE and HL from the stack.
A54C POP HL
A54D LD BC,$0018 HL+=0018.
A550 ADD HL,BC
A551 INC D Increment D by one.
A552 POP BC Restore BC from the stack.
A553 DJNZ $A53C Decrease counter by one and loop back to A53C until counter is zero.
A555 RET Return.
Prev: A50E Up: Map Next: A556