Routines |
Prev: 196E | Up: Map | Next: 1988 |
The given line number in the BC register pair is matched against the addressed line number.
|
||||||||||||||||
CP_LINES | 1980 | LD A,(HL) | Fetch the high byte of the addressed line number and compare it. | |||||||||||||
1981 | CP B | |||||||||||||||
1982 | RET NZ | Return if they do not match. | ||||||||||||||
1983 | INC HL | Next compare the low bytes. | ||||||||||||||
1984 | LD A,(HL) | |||||||||||||||
1985 | DEC HL | |||||||||||||||
1986 | CP C | |||||||||||||||
1987 | RET | Return with the carry flag set if the addressed line number has yet to reach the given line number. |
Prev: 196E | Up: Map | Next: 1988 |