Routines |
Prev: B77A | Up: Map | Next: B7E1 |
Used by the routine at B77A.
|
||||
B7A0 | LD B,$08 | B=08. | ||
B7A2 | EX AF,AF' | Exchange the shadow AF register with the AF register. | ||
B7A3 | LD C,A | C=A. | ||
B7A4 | EX AF,AF' | Exchange the AF register with the shadow AF register. | ||
B7A5 | PUSH BC | Stash BC, HL and DE on the stack. | ||
B7A6 | PUSH HL | |||
B7A7 | PUSH DE | |||
B7A8 | LD A,C | A=C. | ||
B7A9 | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7AB | JR Z,$B7D9 | |||
B7AD | LDI | LDI. | ||
B7AF | INC A | Increment A by one. | ||
B7B0 | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7B2 | JR Z,$B7D9 | |||
B7B4 | LDI | LDI. | ||
B7B6 | INC A | Increment A by one. | ||
B7B7 | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7B9 | JR Z,$B7D9 | |||
B7BB | LDI | LDI. | ||
B7BD | INC A | Increment A by one. | ||
B7BE | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7C0 | JR Z,$B7D9 | |||
B7C2 | LDI | LDI. | ||
B7C4 | INC A | Increment A by one. | ||
B7C5 | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7C7 | JR Z,$B7D9 | |||
B7C9 | LDI | LDI. | ||
B7CB | INC A | Increment A by one. | ||
B7CC | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7CE | JR Z,$B7D9 | |||
B7D0 | LDI | LDI. | ||
B7D2 | INC A | Increment A by one. | ||
B7D3 | CP $20 | Jump to B7D9 if A is equal to 20. | ||
B7D5 | JR Z,$B7D9 | |||
B7D7 | LDI | LDI. | ||
B7D9 | POP DE | Restore DE from the stack. | ||
B7DA | INC D | Increment D by one. | ||
B7DB | POP HL | Restore HL from the stack. | ||
B7DC | INC H | Increment H by one. | ||
B7DD | POP BC | Restore BC from the stack. | ||
B7DE | DJNZ $B7A2 | Decrease counter by one and loop back to B7A2 until counter is zero. | ||
B7E0 | RET | Return. |
Prev: B77A | Up: Map | Next: B7E1 |