Prev: 9A92 Up: Map Next: 9AA5
9A9D: Add Width To Address
Input
B The width of the graphic
DE The address
Output
DE The address plus the width
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