Prev: F800 Up: Map
FC00: The Final Barrier (teleport: 1256)
Used by the routine at 8684.
the_final_barrier
The first 512 bytes are the attributes that define the layout of the cavern. The first 256 bytes here are also used by the routine at 85CC when preparing the top third of the title screen.
FC00 DEFB $2C,$22,$22,$22,$22,$22,$2C,$28 Attributes
FC08 DEFB $28,$28,$28,$28,$2F,$2F,$2F,$2F
FC10 DEFB $2F,$28,$28,$28,$28,$28,$2E,$32
FC18 DEFB $32,$2E,$28,$28,$28,$28,$28,$28
FC20 DEFB $2C,$22,$22,$22,$22,$22,$2C,$28
FC28 DEFB $28,$2F,$28,$28,$2F,$2F,$2F,$2F
FC30 DEFB $2F,$28,$28,$28,$28,$28,$3A,$38
FC38 DEFB $38,$3A,$28,$28,$28,$2A,$2A,$2A
FC40 DEFB $2C,$22,$22,$16,$22,$2C,$2E,$2E
FC48 DEFB $2E,$2E,$2E,$2E,$2F,$2F,$2F,$2F
FC50 DEFB $2F,$2E,$2B,$2E,$2B,$2E,$3A,$38
FC58 DEFB $38,$3A,$2F,$2F,$2F,$2A,$2A,$2A
FC60 DEFB $28,$2C,$2C,$16,$2C,$2E,$2E,$2E
FC68 DEFB $2E,$2E,$2E,$2E,$2E,$28,$28,$28
FC70 DEFB $2C,$2C,$2C,$2C,$2C,$2C,$3A,$3A
FC78 DEFB $3A,$3A,$2F,$2F,$2F,$28,$2A,$28
FC80 DEFB $28,$2F,$28,$16,$28,$2E,$2E,$2E
FC88 DEFB $2E,$2E,$2E,$2E,$2E,$2C,$2C,$2C
FC90 DEFB $26,$26,$26,$26,$26,$26,$26,$26
FC98 DEFB $26,$26,$26,$26,$26,$26,$26,$26
FCA0 DEFB $28,$2C,$2C,$16,$2C,$2E,$2E,$2E
FCA8 DEFB $2E,$2E,$2E,$2E,$2E,$27,$26,$26
FCB0 DEFB $26,$26,$26,$00,$00,$26,$00,$00
FCB8 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FCC0 DEFB $0C,$26,$26,$26,$26,$21,$21,$21
FCC8 DEFB $0E,$0E,$21,$21,$21,$27,$26,$26
FCD0 DEFB $26,$26,$26,$00,$00,$26,$00,$00
FCD8 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FCE0 DEFB $26,$26,$26,$26,$26,$26,$26,$26
FCE8 DEFB $26,$26,$26,$26,$26,$26,$26,$26
FCF0 DEFB $26,$26,$26,$00,$00,$26,$00,$00
FCF8 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FD00 DEFB $26,$00,$00,$00,$00,$00,$00,$00
FD08 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FD10 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FD18 DEFB $00,$00,$00,$00,$00,$42,$42,$26
FD20 DEFB $26,$00,$00,$00,$00,$00,$00,$00
FD28 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FD30 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FD38 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FD40 DEFB $26,$05,$05,$05,$05,$05,$05,$05
FD48 DEFB $05,$05,$05,$05,$05,$05,$05,$05
FD50 DEFB $05,$05,$05,$05,$05,$05,$05,$00
FD58 DEFB $00,$00,$02,$00,$00,$00,$00,$26
FD60 DEFB $26,$00,$00,$00,$00,$00,$00,$00
FD68 DEFB $00,$44,$00,$00,$44,$00,$00,$00
FD70 DEFB $00,$44,$00,$00,$00,$44,$00,$00
FD78 DEFB $00,$00,$00,$00,$42,$00,$00,$26
FD80 DEFB $26,$42,$42,$00,$00,$00,$00,$00
FD88 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FD90 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FD98 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FDA0 DEFB $26,$00,$00,$00,$00,$42,$42,$00
FDA8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FDB0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FDB8 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FDC0 DEFB $26,$00,$00,$00,$00,$00,$00,$00
FDC8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FDD0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
FDD8 DEFB $00,$00,$00,$00,$00,$00,$00,$26
FDE0 DEFB $26,$42,$42,$42,$42,$42,$42,$42
FDE8 DEFB $42,$42,$42,$42,$42,$42,$42,$42
FDF0 DEFB $42,$42,$42,$42,$42,$42,$42,$42
FDF8 DEFB $42,$42,$42,$42,$42,$42,$42,$26
The next 32 bytes are copied to 8000 and specify the cavern name.
FE00 DEFM " The Final Barrier " Cavern name
The next 72 bytes are copied to 8020 and contain the attributes and graphic data for the tiles used to build the cavern.
background_19 floor_19 crumbling_floor_19 wall_19 conveyor_19 nasty1_19 nasty2_19 extra_19
FE20 DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Background
FE29 DEFB $42,$FF,$FF,$DB,$6E,$C5,$40,$00,$00 Floor
FE32 DEFB $02,$FF,$DB,$A5,$24,$52,$20,$08,$00 Crumbling floor
FE3B DEFB $26,$22,$FF,$88,$FF,$22,$FF,$88,$FF Wall
FE44 DEFB $05,$F0,$66,$F0,$66,$00,$99,$FF,$00 Conveyor
FE4D DEFB $44,$10,$10,$D6,$38,$D6,$38,$54,$92 Nasty 1
FE56 DEFB $0A,$7E,$3C,$1C,$18,$18,$08,$08,$08 Nasty 2 (unused)
FE5F DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Extra (unused)
The next seven bytes are copied to 8068-806E and specify Miner Willy's initial location and appearance in the cavern.
FE68 DEFB $D0 Pixel y-coordinate * 2 (see 8068)
FE69 DEFB $00 Animation frame (see 8069)
FE6A DEFB $01 Direction and movement flags: facing left (see 806A)
FE6B DEFB $00 Airborne status indicator (see 806B)
FE6C DEFW $5DBB Location in the attribute buffer at 5C00: (13,27) (see 806C)
FE6E DEFB $00 Jumping animation counter (see 806E)
The next four bytes are copied to 806F and specify the direction, location and length of the conveyor.
FE6F DEFB $01 Direction (right)
FE70 DEFW $7841 Location in the screen buffer at 7000: (10,1)
FE72 DEFB $16 Length
The next byte is copied to 8073 and specifies the border colour.
FE73 DEFB $02 Border colour
The next byte is copied to 8074, but is not used.
FE74 DEFB $00 Unused
The next 25 bytes are copied to 8075 and specify the location and initial colour of the items in the cavern.
FE75 DEFB $03 Item 1 at (5,23)
FE76 DEFW $5CB7
FE78 DEFB $60
FE79 DEFB $FF
FE7A DEFB $04 Item 2 at (6,30)
FE7B DEFW $5CDE
FE7D DEFB $60
FE7E DEFB $FF
FE7F DEFB $05 Item 3 at (11,10)
FE80 DEFW $5D6A
FE82 DEFB $68
FE83 DEFB $FF
FE84 DEFB $06 Item 4 at (11,14)
FE85 DEFW $5D6E
FE87 DEFB $68
FE88 DEFB $FF
FE89 DEFB $03 Item 5 at (11,19)
FE8A DEFW $5D73
FE8C DEFB $68
FE8D DEFB $FF
FE8E DEFB $FF Terminator
The next 37 bytes are copied to 808F and define the portal graphic and its location.
portal19
FE8F DEFB $1E Attribute
FE90 DEFB $00,$00,$07,$E0,$18,$18,$23,$C4 Graphic data
FE98 DEFB $44,$22,$48,$12,$48,$12,$48,$12
FEA0 DEFB $44,$22,$22,$44,$1A,$58,$4A,$52
FEA8 DEFB $7A,$5E,$42,$42,$7E,$7E,$00,$00
FEB0 DEFW $5CB3 Location in the attribute buffer at 5C00: (5,19)
FEB2 DEFW $60B3 Location in the screen buffer at 6000: (5,19)
The next eight bytes are copied to 80B4 and define the item graphic.
item19
FEB4 DEFB $30,$48,$88,$90,$68,$04,$0A,$04 Item graphic data
The next byte is copied to 80BC and specifies the initial air supply in the cavern.
FEBC DEFB $3F Air
The next byte is copied to 80BD and initialises the game clock.
FEBD DEFB $FC Game clock
The next 28 bytes are copied to 80BE and define the horizontal guardians.
FEBE DEFB $46 Horizontal guardian 1: y=13, initial x=7, 7<=x<=22, speed=normal
FEBF DEFW $5DA7
FEC1 DEFB $68
FEC2 DEFB $00
FEC3 DEFB $A7
FEC4 DEFB $B6
FEC5 DEFB $FF,$00,$00,$00,$00,$00,$00 Horizontal guardian 2 (unused)
FECC DEFB $00,$00,$00,$00,$00,$00,$00 Horizontal guardian 3 (unused)
FED3 DEFB $00,$00,$00,$00,$00,$00,$00 Horizontal guardian 4 (unused)
FEDA DEFB $FF Terminator
The next two bytes are copied to 80DB and 80DC but are not used.
FEDB DEFB $00,$00 Unused
The next 28 bytes are copied to 80DD and define the vertical guardians.
FEDD DEFB $07 Vertical guardian 1: x=24, initial y=48, 40<=y<103, initial y-increment=1
FEDE DEFB $00
FEDF DEFB $30
FEE0 DEFB $18
FEE1 DEFB $01
FEE2 DEFB $28
FEE3 DEFB $67
FEE4 DEFB $FF,$00,$00,$00,$00,$00,$00 Vertical guardian 2 (unused)
FEEB DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 3 (unused)
FEF2 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 4 (unused)
The next 7 bytes are unused.
FEF9 DEFB $00,$00,$00,$00,$00,$00,$00 Unused
The next 256 bytes are copied to 8100 and define the guardian graphics.
the_final_barrier_guardian0 the_final_barrier_guardian1 the_final_barrier_guardian2 the_final_barrier_guardian3 the_final_barrier_guardian4 the_final_barrier_guardian5 the_final_barrier_guardian6 the_final_barrier_guardian7
FF00 DEFB $00,$00,$00,$00,$00,$00,$03,$C0 Guardian graphic data
FF08 DEFB $0C,$30,$10,$08,$20,$04,$40,$02
FF10 DEFB $80,$01,$40,$02,$20,$04,$D0,$0B
FF18 DEFB $2C,$34,$4B,$D2,$12,$48,$02,$40
FF20 DEFB $00,$00,$00,$00,$00,$00,$03,$C0
FF28 DEFB $0C,$30,$10,$08,$20,$04,$40,$02
FF30 DEFB $F8,$1F,$57,$EA,$2B,$D4,$12,$48
FF38 DEFB $0C,$30,$03,$C0,$00,$00,$00,$00
FF40 DEFB $04,$20,$04,$20,$12,$48,$4B,$D2
FF48 DEFB $2C,$34,$93,$C9,$A7,$E5,$46,$62
FF50 DEFB $86,$61,$47,$E2,$23,$C4,$10,$08
FF58 DEFB $0C,$30,$03,$C0,$00,$00,$00,$00
FF60 DEFB $00,$00,$00,$00,$00,$00,$03,$C0
FF68 DEFB $0C,$30,$12,$48,$2A,$54,$5F,$FA
FF70 DEFB $F6,$7F,$47,$E2,$23,$C4,$10,$08
FF78 DEFB $0C,$30,$03,$C0,$00,$00,$00,$00
FF80 DEFB $12,$00,$0C,$00,$1E,$00,$BF,$40
FF88 DEFB $73,$80,$73,$80,$BF,$40,$5E,$80
FF90 DEFB $4C,$80,$52,$80,$7F,$80,$0C,$00
FF98 DEFB $61,$80,$92,$C0,$B2,$40,$61,$80
FFA0 DEFB $03,$00,$07,$80,$07,$80,$1C,$E0
FFA8 DEFB $3B,$70,$3B,$70,$1C,$E0,$17,$A0
FFB0 DEFB $17,$A0,$13,$20,$1F,$E0,$03,$00
FFB8 DEFB $18,$60,$24,$90,$34,$B0,$18,$60
FFC0 DEFB $01,$E0,$01,$E0,$01,$20,$0E,$DC
FFC8 DEFB $0D,$EC,$0D,$EC,$0E,$DC,$05,$28
FFD0 DEFB $05,$E8,$05,$E8,$07,$F8,$00,$C0
FFD8 DEFB $06,$18,$0D,$24,$09,$34,$06,$18
FFE0 DEFB $00,$78,$00,$48,$00,$30,$03,$7B
FFE8 DEFB $02,$FD,$02,$FD,$03,$7B,$01,$32
FFF0 DEFB $01,$4A,$01,$7A,$01,$FE,$00,$30
FFF8 DEFB $01,$86,$02,$CD,$02,$49,$01,$86
Prev: F800 Up: Map