Prev: 9260 Up: Map Next: 9273
926C: 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 926C ADD A,L Add A to L.
926D LD L,A Copy it to L.
926E LD A,H Fetch H.
926F ADC A,$00 Add 00 with carry.
9271 LD H,A Copy it to H.
9272 RET Return.
View the equivalent code in;
Prev: 9260 Up: Map Next: 9273