![]() |
Routines |
| Prev: 42949 | Up: Map | Next: 42986 |
|
Used by the routines at ProcessTextTokenWithAttributes, CheckObjectHasSpecialDescription and CheckObjectAttributeWithFlag.
Compares the token with the text and sets the match flag.
|
||||||||
| CheckTokenMatchAndSetFlag | 42960 | XOR A | Clear the token match flag at 42986. | |||||
| 42961 | LD (42986),A | |||||||
| 42964 | BIT 7,D | Jump ahead to PrintTokenBasedOnParameters if bit 7 of D is clear. | ||||||
| 42966 | JR Z,PrintTokenBasedOnParameters | |||||||
| 42968 | LD A,E | Load 2542 and go to CheckTokenMatchAndSetFlag_Next if the low byte of the token is not 238. | ||||||
| 42969 | LD HL,2542 | |||||||
| 42972 | CP L | |||||||
| 42973 | JR NZ,CheckTokenMatchAndSetFlag_Next | |||||||
| 42975 | LD A,D | Read the high byte of the token. | ||||||
| 42976 | AND %00001111 | Take the dictionary page (the low nibble of the token's high byte) to compare with the 9 of token 2542. | ||||||
| 42978 | CP H | See whether the two values match. | ||||||
| 42979 | RET Z | Return if they match. | ||||||
| CheckTokenMatchAndSetFlag_Next | 42980 | LD A,1 | Write 1 to the token match flag at 42986. | |||||
| 42982 | LD (42986),A | |||||||
| 42985 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 42949 | Up: Map | Next: 42986 |