![]() |
Routines |
| Prev: 63467 | Up: Map | Next: 63595 |
|
Used by the routine at BuildTables.
Builds the table at 63744 of every byte with its bits in reverse order, indexed by the byte. The drawing routines use it to draw tiles back to front. The table overwrites the routine at 63741 onwards, which is no longer needed once the shape tables have been built.
|
||||
| BuildReverseTable | 63574 | LD C,0 | Clear C. | |
| 63576 | LD HL,63744 | The next shifted shape. | ||
| BuildReverseTable_Loop | 63579 | LD B,8 | B=8. | |
| 63581 | LD D,C | D=C. | ||
| 63582 | XOR A | Clear A. | ||
| BuildReverseTable_Bits | 63583 | SLA D | Shift D left. | |
| 63585 | RR A | Rotate A right through the carry. | ||
| 63587 | DJNZ BuildReverseTable_Bits | Decrease B and jump to BuildReverseTable_Bits until none remain. | ||
| 63589 | LD (HL),A | Write A where HL points. | ||
| 63590 | INC HL | Advance HL. | ||
| 63591 | INC C | Advance C. | ||
| 63592 | JR NZ,BuildReverseTable_Loop | Jump to BuildReverseTable_Loop if the zero flag is clear. | ||
| 63594 | RET | Return. | ||
| Prev: 63467 | Up: Map | Next: 63595 |