Prev: 8535 Up: Map Next: 898F
858F: Main room logic.
Input
Output
Each byte is read in from the start of each string of data. The first byte found is the command and any data is read from the following bytes.
Command strings holding logic and checks for each room.
Test Commands are:
Value Data Description
00 X, Y Exit position test
01 X, Y Pickup position test
02 O Carrying object[O] test
03 Is fuel can full
04 Is Lift On
05 N Is lift on floor[N]
06 Is lift on
07 Is Help off
08 Carrying towel / Set boxing glove
FF End of room logic.
FE End of IF statement
FD Run action [THEN]
The actions (after $FD) are:
Value Data Description
00 Swap objects
01 Pick up object
02 R, X, Y Enter room[R], position[X, Y]
03 Fill bucket
04 Charge Laser
05 Empty Laser
06 Empty bucket
07 Fill fuel can
08 Empty fuel can
09 Turn on lift
0A F Move lift to floor[F]
0B Lift move coundown
0C F Set lift lights to floor[F]
0D Unlock magnetic lock
0E Turn help on
0F Turn help off
10 Rocket lift off from earth
11 rocket lift off from moon
12 Grab rope
13 TODO
14 Win game
Room $00
Logic_Room00 858F DEFB $01,$3A,$88 [IF] (01) position (3a, 88)
8592 DEFB $FD [THEN]
8593 DEFB $01 Pickup (01)
8594 DEFB $FE [ENDIF]
8595 DEFB $00,$08,$A0 [IF] (00) position (08, 0a)
8598 DEFB $FD [THEN]
8599 DEFB $02,$11,$E8,$98 Enter (02) room (11) at (e8, 98)
859D DEFB $FE [ENDIF]
859E DEFB $FF [END]
Room $01
Logic_Room01 859F DEFB $01,$48,$98 [IF] (01) position (48, 98)
85A2 DEFB $FD [THEN]
85A3 DEFB $01 Picks up (01)
85A4 DEFB $FE [ENDIF]
85A5 DEFB $00,$C8,$88 [IF] (00) position (c8,88)
85A8 DEFB $FD [THEN]
85A9 DEFB $02,$02,$08,$98 Enter (02) new room(02) at (08, 98)
85AD DEFB $FE [ENDIF]
85AE DEFB $00,$00,$48 [IF] (00) position (00, 48)
85B1 DEFB $FD [THEN]
85B2 DEFB $02,$05,$D8,$98 Enter (02) room (05) at (D8, 98)
85B6 DEFB $FE [ENDIF]
85B7 DEFB $00,$E8,$88 [IF] (00) position (e8, 88)
85BA DEFB $08 [AND] (08) boxing glove trap is safe
85BB DEFB $FD [THEN]
85BC DEFB $02,$03,$2E,$98 Enter (02) room (03) at (2e, 98)
85C0 DEFB $FE [ENDIF]
85C1 DEFB $FF [END]
Room $02
Logic_Room02 85C2 DEFB $01,$98,$98 [IF] (01) position (98, 98)
85C5 DEFB $02,$0B [AND] (02) carrying object (0B) 'The box key'
85C7 DEFB $FD [THEN]
85C8 DEFB $01 Pickup (01)
85C9 DEFB $FE [ENDIF]
85CA DEFB $00,$08,$88 [IF] (00) position (08, 88)
85CD DEFB $FD [THEN]
85CE DEFB $02,$01,$C8,$98 Enter (02) room (01) at (c8, 98)
85D2 DEFB $FE [ENDIF]
85D3 DEFB $00,$E8,$88 [IF] (00) exit (e8, 88)
85D6 DEFB $FD [THEN]
85D7 DEFB $02,$04,$08,$98 Enter (02) room (04) at (08, 98)
85DB DEFB $FE [ENDIF]
85DC DEFB $00,$38,$88 [IF] (00) exit (38, 88)
85DF DEFB $FD [THEN]
85E0 DEFB $02,$03,$E8,$98 Enter (02) room (03) at (e8, 98)
85E4 DEFB $FE [ENDIF]
85E5 DEFB $FF [END]
Room $03
Logic_Room03 85E6 DEFB $01,$CC,$70 [IF] (00) position (cc, 70)
85E9 DEFB $FD [THEN]
85EA DEFB $01 (01) Pick up object
85EB DEFB $FE [ENDIF]
85EC DEFB $00,$E8,$88 [IF] (00) position (e8, 88)
85EF DEFB $08 [AND] (08) Boxing glove trap is safe
85F0 DEFB $FD [THEN]
85F1 DEFB $02,$02,$38,$98 Enter (02) room (02) at position (38, 98)
85F5 DEFB $FE [ENDIF]
85F6 DEFB $00,$30,$88 [IF] (00) position (30, 88)
85F9 DEFB $FD [THEN]
85FA DEFB $02,$01,$E8,$98 Enter (02) room (01) at position (e8, 98)
85FE DEFB $FE [ENDIF]
85FF DEFB $00,$08,$88 [IF] (00) position (08,88)
8602 DEFB $FD [THEN]
8603 DEFB $02,$06,$08,$98 Enter (02) room (06) at position (08, 98)
8607 DEFB $FE [ENDIF]
8608 DEFB $FF [END]
Room $04
Logic_Room04 8609 DEFB $01,$78,$98 [IF] (01) position (78, 98)
860C DEFB $FD [THEN]
860D DEFB $01 pickup (01)
860E DEFB $FE [ENDIF]
860F DEFB $00,$78,$88 [IF] (00) position (78, 88)
8612 DEFB $06 [AND] (06) Lift is OFF
8613 DEFB $FD [THEN]
8614 DEFB $09 Turn lift on (09)
8615 DEFB $FE [ENDIF]
8616 DEFB $00,$E8,$98 [IF] (00) position (E8, 98)
8619 DEFB $FD [THEN]
861A DEFB $02,$09,$E8,$98 Enter (02) room (09) at (E8, 98)
861E DEFB $FE [ENDIF]
861F DEFB $00,$08,$88 [IF] (00) position (08, 88)
8622 DEFB $02,$03 [AND] carrying (02) object (03) 'Door Handle'
8624 DEFB $FD [THEN]
8625 DEFB $02,$02,$E8,$98 Enter (02) room (02) at (E8, 98)
8629 DEFB $FE [ENDIF]
862A DEFB $FF [END]
Room $05
Logic_Room05 862B DEFB $01,$68,$98 [IF] (01) position (68, 98)
862E DEFB $FD [THEN]
862F DEFB $01 Pickup (01)
8630 DEFB $FE [ENDIF]
8631 DEFB $00,$E8,$98 [IF] (00) position (E8, 98)
8634 DEFB $FD [THEN]
8635 DEFB $02,$01,$10,$48 Enter (02) room (01) at (10, 48)
8639 DEFB $FE [ENDIF]
863A DEFB $00,$28,$88 [IF] (00) position (28, 88)
863D DEFB $02,$14 [AND] carrying (02) object (14) 'The Penny'
863F DEFB $FD [THEN]
8640 DEFB $02,$0C,$20,$98 Enter (02) room (0c) at (20, 98)
8644 DEFB $FE [ENDIF]
8645 DEFB $00,$08,$88 [IF] (01) position (78, 98)
8648 DEFB $FD [THEN]
8649 DEFB $02,$0A,$E8,$98 Enter (02) room (0A) at (E8, 98)
864D DEFB $FE [ENDIF]
864E DEFB $FF [END]
Room $06
Logic_Room06 864F DEFB $01,$78,$98 [IF] (01) position (78, 98)
8652 DEFB $FD [THEN]
8653 DEFB $01 Pickup (01)
8654 DEFB $FE [ENDIF]
8655 DEFB $00,$28,$98 [IF] (00) position (28, 98)
8658 DEFB $02,$10 [AND] carrying (02) object (10) 'Bucket'
865A DEFB $FD [THEN]
865B DEFB $06 Empty (06) bucket.
865C DEFB $FE [ENDIF]
865D DEFB $00,$08,$88 [IF] (00) position (08, 88)
8660 DEFB $02,$10 [AND] carrying (02) object (10) 'Bucket'
8662 DEFB $FD [THEN]
8663 DEFB $06 Empty (06) bucket.
8664 DEFB $FE [ENDIF]
8665 DEFB $00,$E8,$98 [IF] (00) position (E8, 98)
8668 DEFB $02,$10 [AND] carrying (02) object (10) 'Bucket'
866A DEFB $FD [THEN]
866B DEFB $06 Empty (06) bucket.
866C DEFB $FE [ENDIF]
866D DEFB $00,$28,$98 [IF] (00) position (28, 98)
8670 DEFB $FD [THEN]
8671 DEFB $02,$09,$08,$98 Enter (02) room (09) at (08, 98)
8675 DEFB $FE [ENDIF]
8676 DEFB $00,$08,$88 [IF] (00) position (08, 88)
8679 DEFB $FD [THEN]
867A DEFB $02,$03,$08,$98 Enter (02) room (03) at (08, 98)
867E DEFB $FE [ENDIF]
867F DEFB $00,$E8,$98 [IF] (00) position (E8, 98)
8682 DEFB $FD [THEN]
8683 DEFB $02,$07,$10,$48 Enter (02) room (07) at (10, 48)
8687 DEFB $FE [ENDIF]
8688 DEFB $FF [END]
Rocket Room
Logic_Room07 8689 DEFB $01,$60,$98 [IF] (01) position (06, 98)
868C DEFB $FD [THEN]
868D DEFB $01 pickup (01)
868E DEFB $FE [ENDIF]
868F DEFB $00,$00,$48 [IF] (00) position (00, 48)
8692 DEFB $FD [THEN]
8693 DEFB $02,$06,$DE,$98 Enter (02) room (06) at (DE, 98)
8697 DEFB $FE ENDIF
8698 DEFB $00,$E8,$88 [IF] (00) position (E8, 08)
869B DEFB $08 [AND] (08) Boxing glove trap is safe
869C DEFB $04 [AND] (04) Lift is on
869D DEFB $FD [THEN]
869E DEFB $02,$08,$E8,$98 Enter (02) room (08) at (E8, 98)
86A2 DEFB $0C,$02 Set (02) lift light number (02)
86A4 DEFB $FE [ENDIF]
86A5 DEFB $00,$C2,$98 [IF] (00) position (C2, 98)
86A8 DEFB $02,$08 [AND] carrying (02) object (08) 'Fuel can'
86AA DEFB $03 [AND] (03) fuel can is full.
86AB DEFB $FD [THEN]
86AC DEFB $10 Liftoff (10) rocket
86AD DEFB $02,$19,$30,$88 Enter (02) room (19) at (30, 88)
86B1 DEFB $FE [ENDIF]
86B2 DEFB $FF [END]
Room 08 : Lift
Logic_Room08 86B3 DEFB $01,$08,$80 [IF] (00) position (08, 80)
86B6 DEFB $02,$0E [AND] (02) carrying (0E) 'Hammer'
86B8 DEFB $FD [THEN]
86B9 DEFB $00,$0E (00) Swap object (0e) with object in slot.
86BB DEFB $FE [ENDIF]
86BC DEFB $00,$3D,$88 [IF] (00) position (3D, 88)
86BF DEFB $FD [THEN]
86C0 DEFB $0A,$03 (0A) Move lift to floor (03)
86C2 DEFB $0C,$00 (0C) Set lift light to (00)
86C4 DEFB $FE [ENDIF]
86C5 DEFB $00,$6D,$88 [IF] (00) position (6D, 88)
86C8 DEFB $FD [THEN]
86C9 DEFB $0A,$01 (0A) Move lift to floor (01)
86CB DEFB $0C,$01 (0C) Set lift light to (01)
86CD DEFB $FE [ENDIF]
86CE DEFB $00,$9D,$88 [IF] (00) position (CD, 88)
86D1 DEFB $FD [ENDIF]
86D2 DEFB $0A,$00 (0A) Move lift to floor (00)
86D4 DEFB $0C,$02 (0C) Set lift light to (02)
86D6 DEFB $FE [ENDIF]
86D7 DEFB $00,$CD,$88 [IF] (00) position (CD, 88)
86DA DEFB $FD [THEN]
86DB DEFB $0A,$02 (0A) Move lift to floor (02)
86DD DEFB $0C,$03 (0C) Set lift light to (03)
86DF DEFB $FE [ENDIF]
86E0 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
86E3 DEFB $08 [AND] (08) Boxing Glove trap is safe
86E4 DEFB $05,$03 [AND] (05) LiftFloorNo == (03)
86E6 DEFB $FD [THEN]
86E7 DEFB $0B (0B) Decrease lift count by 1
86E8 DEFB $02,$16,$08,$98 (02) Enter room (16) at (08, 98)
86EC DEFB $FE [ENDIF]
86ED DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
86F0 DEFB $05,$02 [AND] (05) LiftFloorNo == (02)
86F2 DEFB $FD [THEN]
86F3 DEFB $0B Decrease lift count (0B)
86F4 DEFB $02,$10,$08,$98 (02) Enter room (10) at (08, 98)
86F8 DEFB $FE [ENDIF]
86F9 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
86FC DEFB $05,$01 [AND] (05) LiftFloorNo == (01)
86FE DEFB $FD [THEN]
86FF DEFB $0B (0B) Decrease lift count by 1
8700 DEFB $02,$0F,$08,$98 (02) Enter room (0F) at (08, 98)
8704 DEFB $FE [ENDIF]
8705 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
8708 DEFB $05,$00 [AND] (05) LiftFloorNo == (00)
870A DEFB $FD [ENDIF]
870B DEFB $0B (0B) Decrease liftcount by 1
870C DEFB $02,$07,$E8,$98 (02) Enter room (07) at (E8, 98)
8710 DEFB $FE [ENDIF]
8711 DEFB $FF [END]
Room $09
Logic_Room09 8712 DEFB $01,$C8,$28 [IF] (01) position (C8, 28)
8715 DEFB $FD [THEN]
8716 DEFB $01 (01) pickup
8717 DEFB $FE [ENDIF]
8718 DEFB $00,$70,$98 [IF] (00) position (86, 68)
871B DEFB $FD [THEN]
871C DEFB $0F Help Off (0F)
871D DEFB $02,$0E,$60,$98 Enter (02) room (0E) at (60, 98)
8721 DEFB $FE [ENDIF]
8722 DEFB $FF [END]
Room $0A
Logic_Room0A 8723 DEFB $01,$86,$68 [IF] (01) position (86, 68)
8726 DEFB $FD [THEN]
8727 DEFB $01 (01) Pickup
8728 DEFB $FE [ENDIF]
8729 DEFB $00,$50,$88 [IF] (00) position (50, 88)
872C DEFB $02,$02 [AND] (02) carrying object (02) 'Square Key'
872E DEFB $FD [THEN]
872F DEFB $02,$0B,$08,$98 Enter (02) room (0B) at (08,98)
8733 DEFB $FE [ENDIF]
8734 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
8737 DEFB $08 [AND] (08) Boxing glove trap is safe
8738 DEFB $FD [THEN]
8739 DEFB $02,$05,$08,$98 Enter (02) room (05) at (08, 98)
873D DEFB $FE [ENDIF]
873E DEFB $00,$08 [IF] (00) position (08, 88)
8740 DEFB $88 [THEN]
8741 DEFB $FD,$02,$0D,$E8 Enter (02) room (0D) at (E9, 98)
8745 DEFB $98 [ENDIF]
8746 DEFB $FE,$FF [END]
Room $0B
Logic_Room0B 8748 DEFB $01,$48,$98 [IF] (01) position (48, 98)
874B DEFB $FD THEN
874C DEFB $01 (01) pickup
874D DEFB $FE [ENDIF]
874E DEFB $02,$0D [IF] (02) carrying (0d) 'Laser Gun'
8750 DEFB $02,$1D [AND] (02) carrying (1d) 'Battery'
8752 DEFB $FD [THEN]
8753 DEFB $04 (04) Charge Laser
8754 DEFB $FE [ENDIF]
8755 DEFB $00,$08,$88 [IF] (00) position (08, 88)
8758 DEFB $FD [THEN]
8759 DEFB $02,$0A,$50,$98 Enter (02) room (0A) at (50, 98)
875D DEFB $FE [ENDIF]
875E DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
8761 DEFB $FD [THEN]
8762 DEFB $02,$0C,$20,$98 Enter (02) room (0C) at (20, 98)
8766 DEFB $FE [ENDIF]
8767 DEFB $FF [END]
Room $0C
Logic_Room0C 8768 DEFB $01,$B0,$98 [IF] (01) position (B0, 98)
876B DEFB $FD [THEN]
876C DEFB $01 (01) pickup
876D DEFB $FE [ENDIF]
876E DEFB $00,$20,$88 [IF] (00) position (20, 88)
8771 DEFB $FD [THEN]
8772 DEFB $02,$05,$28,$98 Enter (02) room (05) at (28, 98)
8776 DEFB $FE [ENDIF]
8777 DEFB $FF [END]
Room $0D
Logic_Room0D 8778 DEFB $01,$C0,$78 [IF] (01) position (C0, 78)
877B DEFB $02,$1A [AND] (02) carrying (1A) 'Ignition Keys'
877D DEFB $FD [THEN]
877E DEFB $00,$1A Swap (00) object (1A)
8780 DEFB $FE [ENDIF]
8781 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
8784 DEFB $FD [THEN]
8785 DEFB $02,$0A,$08,$98 Enter (02) room (0A) at (08, 98)
8789 DEFB $FE [ENDIF]
878A DEFB $00,$08,$88 [IF] (00) position (08, 88)
878D DEFB $FD [THEN]
878E DEFB $02,$0E,$E8,$98 Enter (02) room (0E) at (E8, 98)
8792 DEFB $FE [ENDIF]
8793 DEFB $00,$00,$48 [IF] (00) position (00, 48)
8796 DEFB $FD [THEN]
8797 DEFB $02,$10,$D4,$98 Enter (02) room (10) at (D4, 98)
879B DEFB $FE [ENDIF]
879C DEFB $FF [END]
Room $0E
Logic_Room0E 879D DEFB $01,$8C,$68 [IF] (01) position (8C, 68)
87A0 DEFB $FD [THEN]
87A1 DEFB $01 (01) Pickup
87A2 DEFB $FE [ENDIF]
87A3 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
87A6 DEFB $FD [THEN]
87A7 DEFB $02,$0D,$08,$98 Enter (02) room (0D) at (08, 98)
87AB DEFB $FE [ENDIF]
87AC DEFB $00,$08,$88 [IF] (00) position (08, 88)
87AF DEFB $FD [THEN]
87B0 DEFB $02,$0F,$E8,$98 Enter (02) room (0F) at (E8, 98)
87B4 DEFB $FE [ENDIF]
87B5 DEFB $FF [END]
Room $0F
Logic_Room0F 87B6 DEFB $01,$90,$70 [IF] (01) position (90, 70)
87B9 DEFB $02,$13 [AND] (02) carrying (13) 'Library Book'
87BB DEFB $FD [THEN]
87BC DEFB $00,$13 Swap (00) object (13)
87BE DEFB $FE [ENDIF]
87BF DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
87C2 DEFB $08 [AND] (08) Boxing glove trap is safe
87C3 DEFB $FD [THEN]
87C4 DEFB $02,$0E,$08,$98 Enter (02) room (0E) at (08, 98)
87C8 DEFB $FE [ENDIF]
87C9 DEFB $00,$08,$88 [IF] (00) position (08, 88)
87CC DEFB $04 [AND] (04) list is on
87CD DEFB $FD [THEN]
87CE DEFB $02,$08,$E8,$98 Enter (02) room (08) at (08, E8)
87D2 DEFB $0C,$01 Set lift lights (0c) to floor (01)
87D4 DEFB $FE [ENDIF]
87D5 DEFB $FF [END]
Room $10
Logic_Room10 87D6 DEFB $01,$32,$80 [IF] (01) position (32, 80)
87D9 DEFB $FD [THEN]
87DA DEFB $01 Pickup (01) object.
87DB DEFB $FE [ENDIF]
87DC DEFB $00,$E8,$98 [IF] (00) position (E8, 98)
87DF DEFB $FD [THEN]
87E0 DEFB $02,$0D,$10,$48 Enter (02) room (0D) at (10, 48)
87E4 DEFB $FE [ENDIF]
87E5 DEFB $00,$08,$88 [IF] (00) position (08, 88)
87E8 DEFB $04 [AND] (04) list if on
87E9 DEFB $FD [THEN]
87EA DEFB $02,$08,$E8,$98 Enter (02) room (08) at (E8, 98)
87EE DEFB $0C,$03 Set (0C) lift lights to (03) floor
87F0 DEFB $FE [ENDIF]
87F1 DEFB $00,$68,$88 [IF] (00) position (68, 88)
87F4 DEFB $FD [THEN]
87F5 DEFB $02,$11,$E8,$98 Enter (02) room (11) at (E8, 98)
87F9 DEFB $FE [ENDIF]
87FA DEFB $01,$C0,$88 [IF] (01) position (C0, 88)
87FD DEFB $FD [THEN]
87FE DEFB $12 Grab rope (12) and slide.
87FF DEFB $FE [ENDIF]
8800 DEFB $FF [END]
Room $11
Logic_Room11 8801 DEFB $01,$74,$70 [IF] (01) position (74, 70)
8804 DEFB $02,$0C [AND] carrying (02) object (0C) 'Library Ticket'
8806 DEFB $FD [THEN]
8807 DEFB $00,$0C (00) Swap object carried (0C)
8809 DEFB $FE [ENDIF]
880A DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
880D DEFB $08 [AND] (08) Boxing glove trap is safe
880E DEFB $FD [THEN]
880F DEFB $02,$10,$68,$98 Enter (02) room (10) at (68, 98)
8813 DEFB $FE [ENDIF]
8814 DEFB $00,$B1,$88 [IF] (00) position (B1, 88)
8817 DEFB $FD [THEN]
8818 DEFB $02,$12,$08,$98 Enter (02) room (12) at (08, 98)
881C DEFB $FE [ENDIF]
881D DEFB $FF [END]
Room $12
Logic_Room12 881E DEFB $01,$C0,$80 [IF] (01) position (C0, 80)
8821 DEFB $02,$05 [AND] carrying (02) object (05) 'Pound Coin'
8823 DEFB $FD [THEN]
8824 DEFB $00,$05 Swap (00) object (05)
8826 DEFB $FE [ENDIF]
8827 DEFB $00,$08,$88 [IF] (00) position (08, 88)
882A DEFB $FD [THEN]
882B DEFB $02,$11,$B1,$98 Enter (02) room (11) at (B1, 98)
882F DEFB $FE [ENDIF]
8830 DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
8833 DEFB $FD [THEN]
8834 DEFB $02,$13,$08,$98 Enter (02) room (13) at (08, 98)
8838 DEFB $FE [ENDIF]
8839 DEFB $00,$78,$60 [IF] (00) position (78, 60)
883C DEFB $07 [AND] (07) Help is off
883D DEFB $FD [THEN]
883E DEFB $0E Switch (0E) Help on.
883F DEFB $FE [ENDIF]
8840 DEFB $FF [END]
Room $13
Logic_Room13 8841 DEFB $01,$78,$98 [IF] (01) position (78, 98)
8844 DEFB $FD [THEN]
8845 DEFB $01 (01) pickup
8846 DEFB $FE [ENDIF]
8847 DEFB $00,$08,$88 [IF] (00) position (08, 88)
884A DEFB $FD [THEN]
884B DEFB $02,$12,$E8,$98 Enter (02) room (12) at (e8, 98)
884F DEFB $FE [ENDIF]
8850 DEFB $00,$E8,$88 [IF] (00) position (e8, 88)
8853 DEFB $FD [THEN]
8854 DEFB $02,$14,$B9,$98 Enter (02) room (14) at (b9, 98)
8858 DEFB $FE [ENDIF]
8859 DEFB $02,$10 [IF] (02) carrying object (10) 'The Bucket'
885B DEFB $01,$58,$98 [AND] (01) position (58, 98)
885E DEFB $FD [THEN]
885F DEFB $03 (03) Fill Bucket Action.
8860 DEFB $FE [ENDIF]
8861 DEFB $FF [END]
Room $14 : Bedroom with Clock.
Logic_Room14 8862 DEFB $01,$38,$98 [IF] (01) position (38, 98)
8865 DEFB $FD [THEN]
8866 DEFB $01 (01) pickup
8867 DEFB $FE [ENDIF]
8868 DEFB $01,$8A,$98 [IF] (01) position (8A, 98)
886B DEFB $02,$1F [AND] (02) carrying (1F) 'Clock Key'
886D DEFB $FD [THEN]
886E DEFB $14 (14) Win the game!
886F DEFB $FE [ENDIF]
8870 DEFB $00,$B9,$88 [IF] (00) position (B9, 88)
8873 DEFB $FD [THEN]
8874 DEFB $02,$13,$E8,$98 Enter (02) room (13) at (E8, 98)
8878 DEFB $FE [ENDIF]
8879 DEFB $00,$E8,$88,$08,$FD,$02,$15,$08 [IF] (00) position (E8, 88)
8881 DEFB $98
8882 DEFB $FE [THEN]
8883 DEFB $FF Enter (02) room (15) at (08, 98)
Room $15
Logic_Room15 8884 DEFB $01 [IF] (01) position (38, 98)
8885 DEFB $60,$98 [END]
8887 DEFB $FD [THEN]
8888 DEFB $01 (01) Pickup.
8889 DEFB $FE [ENDIF]
888A DEFB $00,$08,$88 [IF] (00) position (08, 88)
888D DEFB $FD [THEN]
888E DEFB $02,$14,$E8,$98 Enter (02) room (14) at (E8, 98)
8892 DEFB $FE [ENDIF]
8893 DEFB $00,$D4,$88 [IF] (00) position (D4, 88)
8896 DEFB $FD [THEN]
8897 DEFB $13 Enter (13) Arcade Room.
8898 DEFB $FE [ENDIF]
8899 DEFB $FF [END]
Room $16
Logic_Room16 889A DEFB $01,$DE,$98 [IF] (01) position (DE, 98)
889D DEFB $FD [THEN]
889E DEFB $01 (01) pickup
889F DEFB $FE [ENDIF]
88A0 DEFB $00,$08,$88 [IF] (00) position (08, 88)
88A3 DEFB $04 [AND] (04) lift is on
88A4 DEFB $FD [THEN]
88A5 DEFB $02,$08,$E8,$98 Enter (02) room (08) at (E8, 98)
88A9 DEFB $0C,$00 Set (0C) lift light to floor (00)
88AB DEFB $FE [ENDIF]
88AC DEFB $00,$E8,$88 [IF] (00) position (E8, 99)
88AF DEFB $FD [THEN]
88B0 DEFB $02,$17,$18,$98 Enter (02) room (17) at (18, 98)
88B4 DEFB $FE [ENDIF]
88B5 DEFB $00,$B8,$88 [IF] (00) position (B8, 88)
88B8 DEFB $FD [THEN]
88B9 DEFB $02,$1A,$08,$98 Enter (02) room (1A) at (08, 98)
88BD DEFB $FE [ENDIF]
88BE DEFB $FF [END]
Room $17
Logic_Room17 88BF DEFB $01,$78,$68 [IF] (01) position (78, 68)
88C2 DEFB $FD [THEN]
88C3 DEFB $01 pickup (01)
88C4 DEFB $FE [ENDIF]
88C5 DEFB $00,$18,$88 [IF] (00) position (18, 88)
88C8 DEFB $FD [THEN]
88C9 DEFB $02,$16,$E8,$98 Enter (02) room (16) at (e8, 98)
88CD DEFB $FE [ENDIF]
88CE DEFB $00,$B4,$40 [IF] (00) position (B4, 40)
88D1 DEFB $FD [THEN]
88D2 DEFB $02,$18,$30,$68 Enter (02) room (18) at (30, 68)
88D6 DEFB $FE [ENDIF]
88D7 DEFB $FF [END]
Room $18
Logic_Room18 88D8 DEFB $01,$64,$68 [IF] (01) position (64, 68)
88DB DEFB $02,$18 [AND] carrying (02) object (18) 'Drivers License'
88DD DEFB $FD,$00,$18 [THEN] swap (00) object (18)
88E0 DEFB $FE [ENDIF]
88E1 DEFB $00,$10,$68 [IF] (00) position (10, 68)
88E4 DEFB $FD [THEN]
88E5 DEFB $02,$17,$98,$50 Enter (02) room (17) at (98, 50)
88E9 DEFB $FE [ENDIF]
88EA DEFB $00,$E1,$60 [IF] (00) position (E1, 60)
88ED DEFB $FD [THEN]
88EE DEFB $02,$1C,$80,$28 Enter (02) room (1C) at (80, 28)
88F2 DEFB $FE [ENDIF]
88F3 DEFB $FF [END]
Room $19
Logic_Room19 88F4 DEFB $01,$46,$88 [IF] (01) positon (46, 88)
88F7 DEFB $FD [THEN]
88F8 DEFB $01 Pickup (01)
88F9 DEFB $FE [ENDIF]
88FA DEFB $00,$E8,$78 [IF] (01) position (E8, 78)
88FD DEFB $FD [THEN]
88FE DEFB $02,$1D,$10,$98 Enter (02) room (1D) at (10, 98)
8902 DEFB $FE [ENDIF]
8903 DEFB $00,$12,$88 [IF] (00) position (12, 88)
8906 DEFB $02,$08 [AND] Carrying (02) object (08) 'Fuel Can'
8908 DEFB $02,$0D [AND] Carrying (02) object (0D) 'Laser Gun'
890A DEFB $FD [THEN]
890B DEFB $05 Empty (05) laser gun.
890C DEFB $FE [ENDIF]
890D DEFB $00,$12,$88 [IF] (00) position (12, 88)
8910 DEFB $02,$08 [AND] Carrying (02) object (08) 'Fuel Can'
8912 DEFB $FD [THEN]
8913 DEFB $11 Lift off (11) in rocket back to home.
8914 DEFB $08 Empty (08) fuel can.
8915 DEFB $02,$07,$B0,$98 Enter (02) room (07) at (B0, 98)
8919 DEFB $FE [ENDIF]
891A DEFB $FF [END]
Room $1A
Logic_Room1A 891B DEFB $01,$68,$70 [IF] (01) position (68, 70)
891E DEFB $FD [THEN]
891F DEFB $01 Pickup (01)
8920 DEFB $FE [ENDIF]
8921 DEFB $00,$08,$88 [IF] (00) position (08, 88)
8924 DEFB $FD [THEN]
8925 DEFB $02,$16,$B8,$98 Enter (02) room (16) at (B8, 98)
8929 DEFB $FE [ENDIF]
892A DEFB $00,$E8,$88 [IF] (00) position (E8, 88)
892D DEFB $02,$09 [AND] Carrying (02) object (09) 'Triangle Key'
892F DEFB $FD [THEN]
8930 DEFB $02,$1B,$08,$98 Enter (02) room (1b) at (08, 98)
8934 DEFB $FE [ENDIF]
8935 DEFB $02,$08 [IF] Carrying (02) object (08) 'Fuel Can'
8937 DEFB $01,$36,$98 [AND] (01) position (36, 98)
893A DEFB $FD [THEN]
893B DEFB $07 Fill (07) fuel can.
893C DEFB $FE [ENDIF]
893D DEFB $FF [END]
Room $1B
Logic_Room1B 893E DEFB $01,$B0,$70 [IF] (01) position (B0, 70)
8941 DEFB $FD [THEN]
8942 DEFB $01 Pickup (01)
8943 DEFB $FE [ENDIF]
8944 DEFB $02,$0D [IF] Carrying (02) object (0D) 'Laser Gun'
8946 DEFB $02,$1D [AND] Carrying (02) object (1D) 'Battery'
8948 DEFB $FD [THEN]
8949 DEFB $04 Charge (04) laser gun.
894A DEFB $FE [ENDIF]
894B DEFB $00,$08,$88 [IF] (00) position (08, 88)
894E DEFB $FD [THEN]
894F DEFB $02,$1A,$E8,$98 Enter (02) room (1A) at (E8, 98)
8953 DEFB $FE [ENDIF]
8954 DEFB $00,$98,$98 [IF] (00) position (09, 98)
8957 DEFB $FD [THEN]
8958 DEFB $02,$04,$32,$98 Enter (02) room (04) at (32, 98)
895C DEFB $FE [ENDIF]
895D DEFB $FF [END]
Room $1C
Logic_Room1C 895E DEFB $01,$32,$88 [IF] (01) position (32, 88)
8961 DEFB $FD [THEN]
8962 DEFB $01 Pickup (01)
8963 DEFB $FE [ENDIF]
8964 DEFB $00,$E8,$A0 [IF] (00) position (E8, A0)
8967 DEFB $FD [THEN]
8968 DEFB $02,$00,$F0,$28 Enter (02) room (00) at (F0, 28)
896C DEFB $FE [ENDIF]
896D DEFB $00,$00,$88 [IF] (00) position (88, FD)
8970 DEFB $FD [THEN]
8971 DEFB $02,$15,$D0,$98 Enter (02) room (15) at (D0, 98)
8975 DEFB $FE [ENDIF]
8976 DEFB $FF [END]
Room $1D
Logic_Room1D 8977 DEFB $01,$A8,$60 [IF] (01) position (A8, 60)
897A DEFB $FD [THEN]
897B DEFB $01 Pickup object.
897C DEFB $FE [ENDIF]
897D DEFB $00,$08,$88 [IF] (00) position (08, 88)
8980 DEFB $FD [THEN]
8981 DEFB $02,$19,$E8,$88 Exit (02) to room (19) at (E8, 88)
8985 DEFB $FE [ENDIF]
8986 DEFB $00,$40,$88 [IF] (00) position (40, 88)
8989 DEFB $02,$04 [AND] pockets hold object (04) Magnet
898B DEFB $FD [THEN]
898C DEFB $0D Unlock magnetic lock.
898D DEFB $FE [ENDIF]
898E DEFB $FF [END]
Prev: 8535 Up: Map Next: 898F