Prev: B513 Up: Map Next: B520
B519: Add A To HL
Used by the routines at GetSpriteAddress, BuildRoomScenery and PlayNote.
Adds an unsigned number to HL.
Input
A The number
HL The address
Output
HL The new address
AddAToHL B519 ADD A,L Add A to L.
B51A LD L,A Copy it to L.
B51B LD A,H Fetch H.
B51C ADC A,$00 Add 00 with carry.
B51E LD H,A Copy it to H.
B51F RET Return.
View the equivalent code in;
Prev: B513 Up: Map Next: B520