Prev: 50385 Up: Map Next: 50522
50498: Accept The Graphics Parameter
Used by the routines at ProcessDisplayAction and RecordResultRoomGraphics.
Returns if the saved marker is clear. Otherwise accepts the graphics parameter unless the object is already marked.
AcceptGraphicsParameter 50498 LD A,(40976) Return if the display mode is zero.
50501 AND A
50502 RET Z
50503 LD A,(41013) Jump to AcceptGraphicsParameter_SignalStepFailed if the room graphics parameter is not 255.
50506 CP 255
50508 JR NZ,AcceptGraphicsParameter_SignalStepFailed
Bit 1 of the object attribute value is set?
50510 LD A,(40989) Go to AcceptGraphicsParameter_SignalStepFailed if bit 1 of the object attribute is set.
50513 AND 2
50515 JR NZ,AcceptGraphicsParameter_SignalStepFailed
50517 OR %00000001 Reset the zero flag.
50519 RET Return.
AcceptGraphicsParameter_SignalStepFailed 50520 XOR A Clear A.
50521 RET Return.
Prev: 50385 Up: Map Next: 50522