![]() |
Routines |
| Prev: 7532 | Up: Map | Next: 7569 |
|
Used by the routine at PictureRecord.
Writes a run of attribute bytes into the illustration buffer and returns to the record loop.
|
||||
|
Read the column, row, attribute and run length.
|
||||
| PaintAttributeRun | 753E | INC IX | Advance the record pointer. | |
| 7540 | LD L,(IX+$01) | Copy the row into HL. | ||
| 7543 | LD H,$00 | |||
| 7545 | ADD HL,HL | Multiply by 20. | ||
| 7546 | ADD HL,HL | |||
| 7547 | ADD HL,HL | |||
| 7548 | ADD HL,HL | |||
| 7549 | ADD HL,HL | |||
| 754A | LD D,$00 | Fetch the column. | ||
| 754C | LD E,(IX+$00) | |||
| 754F | INC IX | Step past the column and row. | ||
| 7551 | INC IX | |||
| 7553 | ADD HL,DE | Add the column. | ||
| 7554 | LD DE,$6C7A | Point DE at AttributeBuffer. | ||
| 7557 | ADD HL,DE | Add that buffer. | ||
| 7558 | LD A,(IX+$00) | Fetch the attribute byte. | ||
| 755B | INC IX | Advance the record pointer. | ||
| 755D | LD B,(IX+$00) | Fetch the run length. | ||
| 7560 | INC IX | Advance the record pointer. | ||
|
Write the run.
|
||||
| PaintAttributeRun_Byte | 7562 | LD (HL),A | Write this attribute. | |
| 7563 | INC HL | Advance the destination. | ||
| 7564 | DJNZ PaintAttributeRun_Byte | Jump to PaintAttributeRun_Byte until the run is done. | ||
| 7566 | JP PictureRecord | Jump to PictureRecord. | ||
| Prev: 7532 | Up: Map | Next: 7569 |