Prev: 37472 Up: Map Next: 37491
37484: Add A To HL
Used by the routines at CheckDoorKey and SetEntityAttributes.
Adds an unsigned number to HL.
Input
A The number
HL The address
Output
HL The new address
AddAToHL 37484 ADD A,L Add A to L.
37485 LD L,A Copy it to L.
37486 LD A,H Fetch H.
37487 ADC A,0 Add 0 with carry.
37489 LD H,A Copy it to H.
37490 RET Return.
View the equivalent code in;
Prev: 37472 Up: Map Next: 37491