![]() |
Routines |
| Prev: 80F5 | Up: Map | Next: 8117 |
|
Used by the routine at DrawingSetup.
Moves the screen address down one character row, and undoes that step if it would leave the screen.
|
||||
| Drawing_StepDownOneRow | 8106 | PUSH AF | Step down one attribute row and jump to 8113 if the screen address is not 5A. | |
| 8107 | PUSH DE | |||
| 8108 | LD DE,$0020 | |||
| 810B | ADD HL,DE | |||
| 810C | LD A,H | |||
| 810D | CP $5A | |||
| 810F | JR NZ,$8113 | |||
| 8111 | AND A | Clear the carry flag. | ||
| 8112 | SBC HL,DE | Undo the step. | ||
| 8114 | POP DE | Restore DE and AF from the stack. | ||
| 8115 | POP AF | |||
| 8116 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 80F5 | Up: Map | Next: 8117 |