Routines |
Prev: A505 | Up: Map | Next: A532 |
Used by the routine at A461.
|
||||
A50E | LD DE,($9AC3) | DE=*9AC3. | ||
A512 | DEC D | Decrease D by one. | ||
A513 | LD HL,$7800 | HL=7800. | ||
A516 | LD B,$0A | B=0A. | ||
A518 | PUSH BC | Stash BC, HL and DE on the stack. | ||
A519 | PUSH HL | |||
A51A | PUSH DE | |||
A51B | LD A,D | A=D. | ||
A51C | CP $00 | Jump to A527 if A is less than 00. | ||
A51E | JR C,$A527 | |||
A520 | CP $18 | Jump to A527 if A is greater than or equal to 18. | ||
A522 | JR NC,$A527 | |||
A524 | CALL $A556 | Call A556. | ||
A527 | POP DE | Restore DE and HL from the stack. | ||
A528 | POP HL | |||
A529 | LD BC,$0040 | HL+=0040. | ||
A52C | ADD HL,BC | |||
A52D | INC D | Increment D by one. | ||
A52E | POP BC | Restore BC from the stack. | ||
A52F | DJNZ $A518 | Decrease counter by one and loop back to A518 until counter is zero. | ||
A531 | RET | Return. |
Prev: A505 | Up: Map | Next: A532 |