Prev: 39570 Up: Map Next: 39589
39581: Add Width To Address
Input
B The width of the graphic
DE The address
Output
DE The address plus the width
AddWidthToAddress 39581 LD A,B Fetch the width of the graphic.
39582 ADD A,E Add the low byte of the address.
39583 LD E,A Keep the new low byte in E.
39584 LD A,D Fetch the high byte of the address.
39585 ADC A,0 Add the carry.
39587 LD D,A Keep the new high byte in D.
39588 RET Return.
Prev: 39570 Up: Map Next: 39589