![]() |
Routines |
| Prev: 37782 | Up: Map | Next: 37841 |
| 37816 | LD HL,0 | Load zero (all bits reset) into HL | ||
| 37819 | LD BC,12 | Load 0 into B and 12 into C to repeat outer loop 12 times | ||
| 37822 | DI | Disable interrupts | ||
| 37823 | LD (37837),SP | Store stack pointer at 37837 | ||
| 37827 | LD SP,22528 | Point stack pointer at start of attribute file | ||
| 37830 | PUSH HL | Decrease current stack pointer position by two and load two zeroes into it | ||
| 37831 | DJNZ 37830 | As B is already zero, this will "decrease" B to 255 and thus run through loop 256 times | ||
| 37833 | DEC C | Decrease C... | ||
| 37834 | JR NZ,37830 | ...and repeat if C is still greater than zero | ||
|
The operand of the instruction at 37836 represents the original value in SP stored previously. This is modified by the instruction at 37823.
|
||||
| 37836 | LD SP,0 | Restore stack pointer to original value | ||
| 37839 | EI | Enable interrupts | ||
| 37840 | RET | Return | ||
| Prev: 37782 | Up: Map | Next: 37841 |