TirNaNog | Routines |
Prev: 7E90 | Up: Map | Next: 7F72 |
Used by the routine at Vectors.
|
||||
HandleSelectInput | 7F5D | LD A,(ManData_InventoryCount_DFC9) | Get number of items carried | |
7F60 | AND A | Do nothing if no items carried. | ||
7F61 | RET Z | |||
7F62 | LD B,A | |||
7F63 | LD A,(ManData_SelectIndex_DFCA) | Move selection onto next item, wrapping round if max reached. | ||
7F66 | INC A | |||
7F67 | CP B | |||
7F68 | JR C,HandleSelectInput_0 | |||
7F6A | XOR A | |||
HandleSelectInput_0 | 7F6B | LD (ManData_SelectIndex_DFCA),A | ||
7F6E | CALL UpdateInv_A | |||
7F71 | RET |
Prev: 7E90 | Up: Map | Next: 7F72 |