Prev: 46355 Up: Map Next: 46368
46361: 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 46361 ADD A,L Add A to L.
46362 LD L,A Copy it to L.
46363 LD A,H Fetch H.
46364 ADC A,0 Add 0 with carry.
46366 LD H,A Copy it to H.
46367 RET Return.
View the equivalent code in;
Prev: 46355 Up: Map Next: 46368