![]() |
Routines |
| Prev: 9A92 | Up: Map | Next: 9AA5 |
|
Used by the routines at DrawGraphic_Mirrored, DrawGraphic_RotatedLeft, DrawGraphic_Transposed, DrawGraphic_RotatedHalf, DrawGraphic_TransposedFlipped, SetAttributes_Mirrored, SetAttributes_RotatedLeft, SetAttributes_Transposed, SetAttributes_RotatedHalf and SetAttributes_TransposedFlipped.
Adds the width of a graphic to DE, to move on one row.
|
||||||||||||||
| AddWidthToAddress | 9A9D | LD A,B | Fetch the width of the graphic. | |||||||||||
| 9A9E | ADD A,E | Add the low byte of the address. | ||||||||||||
| 9A9F | LD E,A | Keep the new low byte in E. | ||||||||||||
| 9AA0 | LD A,D | Fetch the high byte of the address. | ||||||||||||
| 9AA1 | ADC A,$00 | Add the carry. | ||||||||||||
| 9AA3 | LD D,A | Keep the new high byte in D. | ||||||||||||
| 9AA4 | RET | Return. | ||||||||||||
| Prev: 9A92 | Up: Map | Next: 9AA5 |