Prev: 858F Up: Map Next: 89AC
898F: Test 00 : Exit position test.
Input
HL Address of room data after event marker.
Output
Test00_WallyPosCheck 898F LD DE,(Wally_X)
8993 LD A,(HL)
8994 INC HL
8995 SUB E
8996 SUB $09
8998 CP $EF
899A JR C,Test00_WallyPosCheck_0
899C LD A,(HL)
899D INC HL
899E SUB D
899F SUB $03
89A1 CP $FA
89A3 JR C,Test00_WallyPosCheck_1
89A5 JP Room_CllEvnt_NxtCmd
Test00_WallyPosCheck_0 89A8 INC HL
Test00_WallyPosCheck_1 89A9 JP Room_CllEvnt_EndIf
Prev: 858F Up: Map Next: 89AC