Prev: E800 Up: Map Next: F000
EC00: The Sixteenth Cavern (teleport: 12346)
Used by the routine at 8684.
the_sixteenth_cavern
The first 512 bytes are the attributes that define the layout of the cavern.
EC00 DEFB $65,$00,$00,$00,$00,$00,$00,$00 Attributes
EC08 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC10 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC18 DEFB $00,$00,$00,$00,$00,$00,$00,$65
EC20 DEFB $65,$00,$00,$00,$00,$00,$00,$00
EC28 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC30 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC38 DEFB $00,$00,$00,$00,$00,$00,$00,$65
EC40 DEFB $65,$00,$00,$00,$00,$00,$00,$00
EC48 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC50 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC58 DEFB $00,$00,$00,$00,$00,$00,$00,$65
EC60 DEFB $65,$00,$00,$00,$00,$00,$00,$00
EC68 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC70 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC78 DEFB $00,$00,$00,$00,$00,$00,$00,$65
EC80 DEFB $65,$00,$00,$00,$00,$00,$00,$00
EC88 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC90 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EC98 DEFB $00,$00,$00,$00,$00,$00,$00,$65
ECA0 DEFB $65,$42,$00,$00,$00,$00,$42,$00
ECA8 DEFB $00,$00,$00,$65,$00,$00,$65,$00
ECB0 DEFB $00,$00,$00,$00,$00,$00,$42,$42
ECB8 DEFB $42,$00,$00,$00,$00,$00,$00,$65
ECC0 DEFB $65,$00,$00,$00,$00,$00,$00,$00
ECC8 DEFB $00,$00,$00,$65,$00,$00,$65,$65
ECD0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
ECD8 DEFB $00,$00,$00,$00,$00,$00,$00,$65
ECE0 DEFB $65,$00,$00,$00,$42,$00,$00,$00
ECE8 DEFB $00,$00,$00,$65,$00,$00,$65,$65
ECF0 DEFB $65,$00,$00,$00,$00,$00,$00,$00
ECF8 DEFB $00,$42,$42,$42,$42,$42,$42,$65
ED00 DEFB $65,$00,$00,$00,$00,$00,$00,$00
ED08 DEFB $00,$00,$00,$65,$00,$00,$65,$65
ED10 DEFB $65,$65,$00,$00,$00,$00,$00,$00
ED18 DEFB $00,$00,$00,$00,$00,$00,$00,$65
ED20 DEFB $65,$02,$02,$46,$46,$46,$46,$46
ED28 DEFB $46,$46,$46,$46,$46,$46,$46,$46
ED30 DEFB $46,$46,$46,$46,$46,$46,$46,$46
ED38 DEFB $46,$46,$46,$00,$00,$00,$00,$65
ED40 DEFB $65,$00,$00,$00,$00,$00,$00,$00
ED48 DEFB $00,$00,$00,$00,$00,$00,$00,$00
ED50 DEFB $00,$00,$00,$00,$00,$00,$00,$00
ED58 DEFB $00,$00,$00,$00,$00,$00,$00,$65
ED60 DEFB $65,$00,$00,$00,$00,$00,$00,$00
ED68 DEFB $00,$00,$65,$65,$42,$42,$00,$00
ED70 DEFB $00,$00,$00,$00,$00,$00,$00,$00
ED78 DEFB $00,$00,$42,$00,$00,$00,$00,$65
ED80 DEFB $65,$42,$42,$42,$42,$42,$42,$42
ED88 DEFB $42,$42,$00,$00,$00,$00,$00,$00
ED90 DEFB $00,$00,$00,$00,$00,$00,$00,$00
ED98 DEFB $00,$00,$00,$00,$00,$00,$00,$65
EDA0 DEFB $65,$00,$00,$00,$00,$00,$00,$00
EDA8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EDB0 DEFB $00,$00,$00,$00,$42,$00,$00,$00
EDB8 DEFB $00,$00,$42,$00,$00,$00,$00,$65
EDC0 DEFB $65,$00,$00,$00,$00,$00,$00,$00
EDC8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
EDD0 DEFB $00,$00,$00,$00,$00,$00,$00,$04
EDD8 DEFB $04,$04,$00,$00,$00,$00,$00,$65
EDE0 DEFB $65,$42,$42,$42,$42,$42,$42,$42
EDE8 DEFB $42,$42,$42,$42,$42,$42,$42,$42
EDF0 DEFB $42,$42,$42,$42,$42,$42,$42,$42
EDF8 DEFB $42,$42,$42,$42,$42,$42,$42,$65
The next 32 bytes are copied to 8000 and specify the cavern name.
EE00 DEFM " The Sixteenth Cavern " 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_15 floor_15 crumbling_floor_15 wall_15 conveyor_15 nasty1_15 nasty2_15 extra_15
EE20 DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Background
EE29 DEFB $42,$FF,$FF,$DB,$6E,$C5,$40,$00,$00 Floor
EE32 DEFB $02,$FF,$DB,$A5,$24,$52,$20,$08,$00 Crumbling floor
EE3B DEFB $65,$49,$F9,$4F,$49,$FF,$48,$78,$CF Wall
EE44 DEFB $46,$F0,$66,$F0,$AA,$00,$00,$00,$00 Conveyor
EE4D DEFB $04,$44,$44,$44,$44,$66,$EE,$EE,$FF Nasty 1
EE56 DEFB $05,$7E,$3C,$1C,$18,$18,$08,$08,$08 Nasty 2 (unused)
EE5F DEFB $06,$FF,$81,$81,$42,$3C,$10,$60,$60 Extra (unused)
The next seven bytes are copied to 8068-806E and specify Miner Willy's initial location and appearance in the cavern.
EE68 DEFB $D0 Pixel y-coordinate * 2 (see 8068)
EE69 DEFB $00 Animation frame (see 8069)
EE6A DEFB $00 Direction and movement flags: facing right (see 806A)
EE6B DEFB $00 Airborne status indicator (see 806B)
EE6C DEFW $5DA2 Location in the attribute buffer at 5C00: (13,2) (see 806C)
EE6E 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.
EE6F DEFB $00 Direction (left)
EE70 DEFW $7823 Location in the screen buffer at 7000: (9,3)
EE72 DEFB $18 Length
The next byte is copied to 8073 and specifies the border colour.
EE73 DEFB $02 Border colour
The next byte is copied to 8074, but is not used.
EE74 DEFB $00 Unused
The next 25 bytes are copied to 8075 and specify the location and initial colour of the items in the cavern.
EE75 DEFB $03 Item 1 at (2,30)
EE76 DEFW $5C5E
EE78 DEFB $60
EE79 DEFB $FF
EE7A DEFB $04 Item 2 at (7,13)
EE7B DEFW $5CED
EE7D DEFB $60
EE7E DEFB $FF
EE7F DEFB $05 Item 3 at (0,1)
EE80 DEFW $5C01
EE82 DEFB $60
EE83 DEFB $FF
EE84 DEFB $06 Item 4 at (10,17)
EE85 DEFW $5D51
EE87 DEFB $68
EE88 DEFB $FF
EE89 DEFB $FF Item 5 at (5,26) (unused)
EE8A DEFW $5CBA
EE8C DEFB $60
EE8D DEFB $FF
EE8E DEFB $FF Terminator
The next 37 bytes are copied to 808F and define the portal graphic and its location.
portal15
EE8F DEFB $5E Attribute
EE90 DEFB $FF,$FF,$81,$81,$81,$81,$FF,$FF Graphic data
EE98 DEFB $81,$81,$81,$81,$FF,$FF,$81,$81
EEA0 DEFB $81,$81,$FF,$FF,$81,$81,$81,$81
EEA8 DEFB $FF,$FF,$81,$81,$81,$81,$FF,$FF
EEB0 DEFW $5CAC Location in the attribute buffer at 5C00: (5,12)
EEB2 DEFW $60AC Location in the screen buffer at 6000: (5,12)
The next eight bytes are copied to 80B4 and define the item graphic.
item15
EEB4 DEFB $0F,$09,$3D,$27,$F4,$9C,$90,$F0 Item graphic data
The next byte is copied to 80BC and specifies the initial air supply in the cavern.
EEBC DEFB $3F Air
The next byte is copied to 80BD and initialises the game clock.
EEBD DEFB $F8 Game clock
The next 28 bytes are copied to 80BE and define the horizontal guardians.
EEBE DEFB $44 Horizontal guardian 1: y=13, initial x=9, 1<=x<=18, speed=normal
EEBF DEFW $5DA9
EEC1 DEFB $68
EEC2 DEFB $00
EEC3 DEFB $A1
EEC4 DEFB $B2
EEC5 DEFB $06 Horizontal guardian 2: y=10, initial x=1, 1<=x<=7, speed=normal
EEC6 DEFW $5D41
EEC8 DEFB $68
EEC9 DEFB $00
EECA DEFB $41
EECB DEFB $47
EECC DEFB $43 Horizontal guardian 3: y=7, initial x=18, 18<=x<=23, speed=normal
EECD DEFW $5CF2
EECF DEFB $60
EED0 DEFB $00
EED1 DEFB $F2
EED2 DEFB $F7
EED3 DEFB $85 Horizontal guardian 4: y=5, initial x=26, 25<=x<=29, speed=slow
EED4 DEFW $5CBA
EED6 DEFB $60
EED7 DEFB $00
EED8 DEFB $B9
EED9 DEFB $BD
EEDA DEFB $FF Terminator
The next two bytes are copied to 80DB and 80DC but are not used.
EEDB DEFB $00,$00 Unused
The next 28 bytes are copied to 80DD and define the vertical guardians.
EEDD DEFB $FF,$00,$00,$00,$00,$00,$00 Vertical guardian 1 (unused)
EEE4 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 2 (unused)
EEEB DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 3 (unused)
EEF2 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 4 (unused)
The next 7 bytes are unused.
EEF9 DEFB $00,$00,$00,$00,$00,$00,$00 Unused
The next 256 bytes are copied to 8100 and define the guardian graphics.
the_sixteenth_cavern_guardian0 the_sixteenth_cavern_guardian1 the_sixteenth_cavern_guardian2 the_sixteenth_cavern_guardian3 the_sixteenth_cavern_guardian4 the_sixteenth_cavern_guardian5 the_sixteenth_cavern_guardian6 the_sixteenth_cavern_guardian7
EF00 DEFB $00,$00,$08,$00,$14,$00,$2A,$00 Guardian graphic data
EF08 DEFB $55,$00,$4A,$00,$84,$00,$80,$C0
EF10 DEFB $80,$C0,$41,$00,$7F,$80,$3F,$C0
EF18 DEFB $1F,$80,$0F,$00,$0A,$80,$12,$40
EF20 DEFB $2A,$00,$15,$00,$2A,$00,$15,$00
EF28 DEFB $20,$00,$20,$00,$20,$00,$20,$30
EF30 DEFB $20,$30,$10,$40,$1F,$E0,$0F,$F0
EF38 DEFB $07,$E0,$03,$C0,$02,$A0,$04,$90
EF40 DEFB $00,$00,$10,$00,$28,$00,$54,$00
EF48 DEFB $AA,$00,$51,$00,$21,$00,$01,$0C
EF50 DEFB $02,$0C,$02,$10,$03,$F8,$03,$FC
EF58 DEFB $01,$F8,$00,$F0,$00,$A8,$01,$24
EF60 DEFB $05,$40,$0A,$80,$05,$40,$0A,$80
EF68 DEFB $00,$40,$00,$40,$00,$40,$00,$43
EF70 DEFB $00,$83,$00,$84,$00,$FE,$00,$FF
EF78 DEFB $00,$7E,$00,$3C,$00,$2A,$00,$49
EF80 DEFB $02,$A0,$01,$50,$02,$A0,$01,$50
EF88 DEFB $02,$00,$02,$00,$02,$00,$C2,$00
EF90 DEFB $C1,$00,$21,$00,$7F,$00,$FF,$00
EF98 DEFB $7E,$00,$3C,$00,$54,$00,$92,$00
EFA0 DEFB $00,$00,$00,$08,$00,$14,$00,$2A
EFA8 DEFB $00,$55,$00,$8A,$00,$84,$30,$80
EFB0 DEFB $30,$40,$08,$40,$1F,$C0,$3F,$C0
EFB8 DEFB $1F,$80,$0F,$00,$15,$00,$24,$80
EFC0 DEFB $00,$54,$00,$A8,$00,$54,$00,$A8
EFC8 DEFB $00,$04,$00,$04,$00,$04,$0C,$04
EFD0 DEFB $0C,$04,$02,$08,$07,$F8,$0F,$F0
EFD8 DEFB $07,$E0,$03,$C0,$05,$40,$09,$20
EFE0 DEFB $00,$00,$00,$10,$00,$28,$00,$54
EFE8 DEFB $00,$AA,$00,$52,$00,$21,$03,$01
EFF0 DEFB $03,$01,$00,$82,$01,$FE,$03,$FC
EFF8 DEFB $01,$F8,$00,$F0,$01,$50,$02,$48
Prev: E800 Up: Map Next: F000