Prev: 56461 Up: Map Next: 56541
56487: Apply The Room Display Parameter
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 56487 LD A,(41014) Call 53880 to test for the end marker.
56490 LD HL,41012
56493 CALL 53880
56496 JP C,ParseInputNumber_ReturnZero Go to ParseInputNumber_ReturnZero to return zero when the carry is set.
56499 OR %00000001 Reset the zero flag.
56501 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 56502 LD HL,56507 Hand back the address of the following step.
56505 XOR A Clear A.
56506 RET Return.
56507 LD HL,26807 Jump back to PrintTextAndHandleControlCharacters to print this message.
56510 JP PrintTextAndHandleControlCharacters
56513 DEFB 105,16,162,220 Display record read by ProcessDisplayRecord: flags 105 value 16 handler 56482.
Run by 51812 after the display record at 56513.
56517 LD IX,(40979) Read the current object.
56521 LD A,(41014) Read the character being processed.
56524 LD (IX+1),A Store it on the object.
56527 OR %00000001 Reset the zero flag.
56529 RET Return.
Reached through the display record at 56579, dispatched by DispatchLookedUpHandlerThird.
56530 LD A,(41011) Call ReadCharacterRoom to read the character's room.
56533 CALL ReadCharacterRoom
ApplyRoomDisplay_Loop 56536 CP 255 Return zero through ParseInputNumber_ReturnZero when the character id is the end marker.
56538 JP Z,ParseInputNumber_ReturnZero
Prev: 56461 Up: Map Next: 56541