![]() |
Routines |
| Prev: 43386 | Up: Map | Next: 43493 |
|
Used by the routines at StartMenu and AroundTheClock.
|
||||
| 43458 | LD DE,257 | DE=257. | ||
| 43461 | LD B,22 | B=22. | ||
| 43463 | PUSH DE | Stash DE and BC on the stack. | ||
| 43464 | PUSH BC | |||
|
On return from CalculateScreenBuffer HL will contain the screen buffer destination.
|
||||
| 43465 | CALL CalculateScreenBuffer | Call CalculateScreenBuffer. | ||
| 43468 | LD B,8 | B=8. | ||
| 43470 | PUSH BC | Stash BC and HL on the stack. | ||
| 43471 | PUSH HL | |||
| 43472 | LD BC,5 | BC=0005. | ||
| 43475 | PUSH HL | Stash HL on the stack. | ||
| 43476 | POP DE | Restore DE from the stack. | ||
| 43477 | INC DE | Increment DE by one. | ||
| 43478 | LD (HL),0 | Write 0 to *HL. | ||
| 43480 | LDIR | LDIR. | ||
| 43482 | POP HL | Restore HL from the stack. | ||
| 43483 | INC H | Increment H by one. | ||
| 43484 | POP BC | Restore BC from the stack. | ||
| 43485 | DJNZ 43470 | Decrease counter by one and loop back to 43470 until counter is zero. | ||
| 43487 | POP BC | Restore BC and DE from the stack. | ||
| 43488 | POP DE | |||
| 43489 | INC D | Increment D by one. | ||
| 43490 | DJNZ 43463 | Decrease counter by one and loop back to 43463 until counter is zero. | ||
| 43492 | RET | Return. | ||
| Prev: 43386 | Up: Map | Next: 43493 |