![]() |
Routines |
| Prev: 56311 | Up: Map | Next: 56461 |
|
Used by the routines at ProcessObjectDisplay, CheckCharacterDisguise, ProcessDisplayWithLocationCheck, ParseInputNumber and CombineCharacterRoom.
Sets the zero flag if the current character is 0 1 or Sherlock (100); otherwise returns non-zero.
|
||||
| CheckCharacterID | 56428 | LD A,(41014) | Return if the character is zero. | |
| 56431 | CP 0 | |||
| 56433 | RET Z | |||
| 56434 | CP 1 | Return if it is 1. | ||
| 56436 | RET Z | |||
| 56437 | CP 100 | Return if the character is Sherlock (100). | ||
| 56439 | RET Z | |||
| 56440 | OR %00000001 | Reset the zero flag. | ||
| 56442 | RET | Return. | ||
| 56443 | DEFB 32,16 | Display record read by ProcessDisplayRecord: flags 32 value 16. | ||
|
Run by 51812 after the display record at 56443.
|
||||
| 56445 | CALL CheckCharacterID | Call CheckCharacterID to see whether the character is zero, one, or Sherlock. | ||
| 56448 | RET NZ | Return unless the character is zero, one, or Sherlock. | ||
|
Print newline.
|
||||
| 56449 | CALL PrintNewline | Call PrintNewline to print a new line. | ||
| 56452 | LD A,(40970) | Read the character attribute, then call ProcessLocationTokenDisplay to run location token display. | ||
| 56455 | CALL ProcessLocationTokenDisplay | |||
| 56458 | OR %00000001 | Reset the zero flag. | ||
| 56460 | RET | Return. | ||
| Prev: 56311 | Up: Map | Next: 56461 |