![]() |
Routines |
| Prev: 30002 | Up: Map | Next: 30057 |
|
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 | 30014 | INC IX | Advance the record pointer. | |
| 30016 | LD L,(IX+1) | Copy the row into HL. | ||
| 30019 | LD H,0 | |||
| 30021 | ADD HL,HL | Multiply by 32. | ||
| 30022 | ADD HL,HL | |||
| 30023 | ADD HL,HL | |||
| 30024 | ADD HL,HL | |||
| 30025 | ADD HL,HL | |||
| 30026 | LD D,0 | Fetch the column. | ||
| 30028 | LD E,(IX+0) | |||
| 30031 | INC IX | Step past the column and row. | ||
| 30033 | INC IX | |||
| 30035 | ADD HL,DE | Add the column. | ||
| 30036 | LD DE,27770 | Point DE at AttributeBuffer. | ||
| 30039 | ADD HL,DE | Add that buffer. | ||
| 30040 | LD A,(IX+0) | Fetch the attribute byte. | ||
| 30043 | INC IX | Advance the record pointer. | ||
| 30045 | LD B,(IX+0) | Fetch the run length. | ||
| 30048 | INC IX | Advance the record pointer. | ||
|
Write the run.
|
||||
| PaintAttributeRun_Byte | 30050 | LD (HL),A | Write this attribute. | |
| 30051 | INC HL | Advance the destination. | ||
| 30052 | DJNZ PaintAttributeRun_Byte | Jump to PaintAttributeRun_Byte until the run is done. | ||
| 30054 | JP PictureRecord | Jump to PictureRecord. | ||
| Prev: 30002 | Up: Map | Next: 30057 |