![]() |
Routines |
32032 | LD HL,32758 | Decrement the LSB of the lines-giving delay counter at 32758 |
32035 | DEC (HL) | |
32036 | RET NZ | Return unless it's time to inspect the MSB |
32037 | LD (HL),15 | Reset the LSB to 15 |
32039 | INC L | HL=32759 (MSB of lines-giving delay counter) |
32040 | INC (HL) | Has the lines-giving delay counter reached 0? |
32041 | DEC (HL) | |
32042 | JR Z,32049 | Jump if so |
32044 | DEC (HL) | Otherwise decrement the MSB of the counter |
32045 | LD A,(HL) | Pick up the MSB in A |
32046 | CP 6 | Has enough time passed since the last time ERIC was given lines? |
32048 | RET NC | Return if not |
32049 | CALL 32000 | A=location identifier for ERIC |
32052 | JR 32062 | Skip over the routine at 32054 |