Prev: 62035 Up: Map Next: 62058
62038: Bump Digit
Used by the routines at Event_DigitThree, Event_DigitFour and Event_DigitTwo.
Increases *(HL) and wraps at 10.
Event_BumpDigit 62038 LD BC,9748 Write 9748 to *EventTimer.
62041 LD (25759),BC
62045 LD A,(HL) Increase A from *(HL).
62046 INC A
62047 CP 10 Compare it with 10.
62049 LD (HL),A Write it back.
62050 JP NZ,Print_Inventory Jump to Print_Inventory if it did not wrap.
62053 XOR A Write 0.
62054 LD (HL),A
62055 JP Print_Inventory Jump to Print_Inventory.
Prev: 62035 Up: Map Next: 62058