![]() |
Routines |
| Prev: 29250 | Up: Map | Next: 29324 |
|
Used by the routine at PatchShift.
Copies a reversed attribute row into the illustration buffer.
|
||||
| ReverseAttributeRow | 29297 | PUSH BC | Stash the row counter on the stack. | |
| 29298 | CALL AttributeRow | Call AttributeRow. | ||
| 29301 | LD DE,0 | Load the patched width. | ||
| 29304 | PUSH HL | Point DE at the start and HL at the far end. | ||
| 29305 | ADD HL,DE | |||
| 29306 | DEC HL | |||
| 29307 | POP DE | |||
| 29308 | LD B,0 | Copy 256 bytes. | ||
|
Copy one reversed byte.
|
||||
| ReverseAttributeRow_Byte | 29310 | LD A,(DE) | Copy this byte. | |
| 29311 | LD (HL),A | |||
| 29312 | INC DE | Step both pointers. | ||
| 29313 | DEC HL | |||
| 29314 | DJNZ ReverseAttributeRow_Byte | Jump to ReverseAttributeRow_Byte until the row is done. | ||
| 29316 | POP BC | Restore the row counter from the stack. | ||
| 29317 | INC B | Jump to ReverseAttributeRow until the patched row count is done. | ||
| 29318 | LD A,0 | |||
| 29320 | CP B | |||
| 29321 | JR NZ,ReverseAttributeRow | |||
| 29323 | RET | Return. | ||
| Prev: 29250 | Up: Map | Next: 29324 |