Prev: D26C Up: Map Next: D29D
D275: Check Character ID Range
Used by the routines at ProcessDisplayAction and ProcessObjectFromA034_D26C.
CheckCharacterIDRange D275 LD HL,$A036
This entry point is used by the routines at CheckObjectMatchCriteria, CheckCharacterID and E17B.
CheckCharacterIDRange_0 D278 CP $FF
D27A SCF
D27B RET Z
D27C CP $FE
D27E SCF
D27F RET Z
D280 PUSH IX
D282 CALL CheckCharacterIDRange_1
D285 POP IX
D287 RET
CheckCharacterIDRange_1 D288 CALL FetchObjectDataPointer
D28B PUSH AF
D28C LD A,(IX+$01)
D28F CP $FF
D291 JR Z,CheckCharacterIDRange_2
D293 POP IX
D295 CP (HL)
D296 JR NZ,CheckCharacterIDRange_1
D298 SCF
D299 RET
CheckCharacterIDRange_2 D29A POP AF
D29B AND A
D29C RET
Prev: D26C Up: Map Next: D29D