![]() |
Routines |
| Prev: E6EA | Up: Map | Next: E70E |
|
Fails the action unless the character being processed matches both room parameters. A non-zero return means the script step succeeded.
|
||||
|
Handler word in the display record at E6E6, called via CB34.
|
||||
| CompareCharacterWithRoom | E6F6 | LD A,($A036) | Compare the character being processed with the room display parameter. | |
| E6F9 | LD HL,$A034 | |||
| E6FC | CP (HL) | |||
| E6FD | JP Z,ParseInputNumber_ReturnZero | Go to ParseInputNumber_ReturnZero when they match. | ||
| E700 | DEC A | Count down one and point IX at the current object (A013). | ||
| E701 | LD IX,($A013) | |||
| E705 | CP (IX+$01) | Go to ParseInputNumber_ReturnZero if it does not match byte 01 of that object. | ||
| E708 | JP NZ,ParseInputNumber_ReturnZero | |||
| E70B | OR %00000001 | Reset the zero flag. | ||
| E70D | RET | Return. | ||
| Prev: E6EA | Up: Map | Next: E70E |