![]() |
Routines |
| Prev: 61910 | Up: Map | Next: 62370 |
|
Compares the character being processed with the two room parameters. A non-zero return means the script step succeeded.
|
||||
|
Handler word in the display record at 62336, called via 52020.
|
||||
| CompareRoomParameters | 62345 | LD IX,(40979) | Point IX at the current object (40979). | |
| 62349 | LD A,(41014) | Read the character being processed and count down one. | ||
| 62352 | DEC A | |||
| 62353 | CP (IX+1) | Compare it with byte 1 of that object. | ||
| 62356 | JP NZ,ParseInputNumber_ReturnZero | Go to ParseInputNumber_ReturnZero if they differ. | ||
| 62359 | LD HL,41012 | Point HL at the room display parameter at RoomDisplayParameter. | ||
| 62362 | INC A | Bring the character id back up by one and compare it with the room display parameter. | ||
| 62363 | CP (HL) | |||
| 62364 | JP Z,ParseInputNumber_ReturnZero | Go to ParseInputNumber_ReturnZero if it matches the room display parameter. | ||
| 62367 | OR %00000001 | Reset the zero flag. | ||
| 62369 | RET | Return. | ||
| Prev: 61910 | Up: Map | Next: 62370 |