Prev: 9BCB Up: Map Next: 9BD6
9BCF: Add A To HL
Input
A The number
HL The address
Output
HL The new address
AddAToHL 9BCF ADD A,L Add A to L.
9BD0 LD L,A Copy it to L.
9BD1 LD A,H Fetch H.
9BD2 ADC A,$00 Add 00 with carry.
9BD4 LD H,A Copy it to H.
9BD5 RET Return.
View the equivalent code in;
Prev: 9BCB Up: Map Next: 9BD6