Prev: D3F0 Up: Map Next: D4F9
D4F2: Add A To HL
Adds an unsigned number to HL.
Input
A The number
HL The address
Output
HL The new address
AddAToHL D4F2 ADD A,L Add A to L.
D4F3 LD L,A Copy it to L.
D4F4 LD A,H Fetch H.
D4F5 ADC A,$00 Add 00 with carry.
D4F7 LD H,A Copy it to H.
D4F8 RET Return.
View the equivalent code in;
Prev: D3F0 Up: Map Next: D4F9