![]() |
Routines |
| Prev: DC8D | Up: Map | Next: DCDD |
|
Used by the routine at CheckCharacterForRoomGraphics.
Tests the room named for the picture, and returns the failure the script expects when the test does not pass.
|
||||
| ApplyRoomDisplay | DCA7 | LD A,($A036) | Call D278 to test for the end marker. | |
| DCAA | LD HL,$A034 | |||
| DCAD | CALL $D278 | |||
| DCB0 | JP C,ParseInputNumber_ReturnZero | Go to ParseInputNumber_ReturnZero to return zero when the carry is set. | ||
| DCB3 | OR %00000001 | Reset the zero flag. | ||
| DCB5 | RET | Return. | ||
|
This entry point is used by the routine at CopySavedCharacterIdentifier.
Hands the following step back to the caller and reports that the test failed.
|
||||
| ApplyRoomDisplay_ReturnText | DCB6 | LD HL,$DCBB | Hand back the address of the following step. | |
| DCB9 | XOR A | Clear A. | ||
| DCBA | RET | Return. | ||
| DCBB | LD HL,$68B7 | Jump back to PrintTextAndHandleControlCharacters to print this message. | ||
| DCBE | JP PrintTextAndHandleControlCharacters | |||
| DCC1 | DEFB $69,$10,$A2,$DC | Display record read by ProcessDisplayRecord: flags 69 value 10 handler DCA2. | ||
| DCC5 | LD IX,($A013) | Read the current object. | ||
| DCC9 | LD A,($A036) | Read the character being processed. | ||
| DCCC | LD (IX+$01),A | Store it on the object. | ||
| DCCF | OR %00000001 | Reset the zero flag. | ||
| DCD1 | RET | Return. | ||
|
Reached through the display record at DD03, dispatched by DispatchLookedUpHandlerThird.
|
||||
| DCD2 | LD A,($A033) | Call ReadCharacterRoom to read the character's room. | ||
| DCD5 | CALL ReadCharacterRoom | |||
| ApplyRoomDisplay_Loop | DCD8 | CP $FF | Return zero through ParseInputNumber_ReturnZero when the character id is the end marker. | |
| DCDA | JP Z,ParseInputNumber_ReturnZero | |||
| Prev: DC8D | Up: Map | Next: DCDD |