Prev: C000 Up: Map Next: C800
C400: Processing Plant (teleport: 136)
Used by the routine at 8684.
processing_plant
The first 512 bytes are the attributes that define the layout of the cavern.
C400 DEFB $16,$00,$00,$00,$00,$00,$00,$00 Attributes
C408 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C410 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C418 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C420 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C428 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C430 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C438 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C440 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C448 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C450 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C458 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C460 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C468 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C470 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C478 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C480 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C488 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C490 DEFB $00,$00,$00,$00,$00,$06,$00,$00
C498 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C4A0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C4A8 DEFB $44,$44,$44,$00,$00,$00,$00,$44
C4B0 DEFB $44,$00,$00,$00,$00,$44,$44,$44
C4B8 DEFB $44,$44,$00,$00,$00,$00,$00,$16
C4C0 DEFB $16,$00,$00,$44,$44,$00,$00,$00
C4C8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C4D0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C4D8 DEFB $00,$00,$00,$00,$44,$44,$44,$16
C4E0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C4E8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C4F0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C4F8 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C500 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C508 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C510 DEFB $00,$00,$00,$00,$00,$00,$00,$44
C518 DEFB $44,$44,$44,$44,$00,$00,$00,$16
C520 DEFB $16,$44,$44,$00,$00,$00,$00,$00
C528 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C530 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C538 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C540 DEFB $16,$00,$00,$00,$00,$00,$00,$44
C548 DEFB $44,$44,$44,$44,$44,$44,$44,$44
C550 DEFB $16,$44,$44,$44,$44,$44,$44,$44
C558 DEFB $44,$44,$00,$00,$00,$00,$00,$16
C560 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C568 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C570 DEFB $16,$06,$00,$00,$00,$00,$00,$00
C578 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C580 DEFB $16,$00,$00,$43,$00,$00,$00,$00
C588 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C590 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C598 DEFB $00,$00,$00,$00,$44,$44,$44,$16
C5A0 DEFB $16,$00,$00,$05,$05,$05,$05,$00
C5A8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C5B0 DEFB $00,$00,$00,$00,$00,$00,$44,$44
C5B8 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C5C0 DEFB $16,$00,$00,$00,$00,$00,$00,$00
C5C8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C5D0 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C5D8 DEFB $00,$00,$00,$00,$00,$00,$00,$16
C5E0 DEFB $16,$44,$44,$44,$44,$44,$44,$44
C5E8 DEFB $44,$44,$44,$44,$44,$44,$44,$44
C5F0 DEFB $44,$44,$44,$44,$44,$44,$44,$44
C5F8 DEFB $44,$44,$44,$44,$44,$44,$44,$16
The next 32 bytes are copied to 8000 and specify the cavern name.
C600 DEFM " Processing Plant " 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_5 floor_5 crumbling_floor_5 wall_5 conveyor_5 nasty1_5 nasty2_5 extra_5
C620 DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00 Background
C629 DEFB $44,$FF,$FF,$99,$99,$FF,$99,$66,$00 Floor
C632 DEFB $04,$FF,$DB,$A5,$24,$52,$20,$08,$00 Crumbling floor (unused)
C63B DEFB $16,$FF,$99,$FF,$66,$FF,$99,$FF,$66 Wall
C644 DEFB $05,$F0,$66,$F0,$66,$00,$99,$FF,$00 Conveyor
C64D DEFB $43,$44,$28,$94,$51,$35,$D6,$58,$10 Nasty 1
C656 DEFB $06,$3C,$18,$BD,$E7,$E7,$BD,$18,$3C Nasty 2
C65F 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.
C668 DEFB $30 Pixel y-coordinate * 2 (see 8068)
C669 DEFB $03 Animation frame (see 8069)
C66A DEFB $01 Direction and movement flags: facing left (see 806A)
C66B DEFB $00 Airborne status indicator (see 806B)
C66C DEFW $5C6F Location in the attribute buffer at 5C00: (3,15) (see 806C)
C66E 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.
C66F DEFB $00 Direction (left)
C670 DEFW $78A3 Location in the screen buffer at 7000: (13,3)
C672 DEFB $04 Length
The next byte is copied to 8073 and specifies the border colour.
C673 DEFB $02 Border colour
The next byte is copied to 8074, but is not used.
C674 DEFB $00 Unused
The next 25 bytes are copied to 8075 and specify the location and initial colour of the items in the cavern.
C675 DEFB $03 Item 1 at (6,15)
C676 DEFW $5CCF
C678 DEFB $60
C679 DEFB $FF
C67A DEFB $04 Item 2 at (6,17)
C67B DEFW $5CD1
C67D DEFB $60
C67E DEFB $FF
C67F DEFB $05 Item 3 at (7,30)
C680 DEFW $5CFE
C682 DEFB $60
C683 DEFB $FF
C684 DEFB $06 Item 4 at (10,1)
C685 DEFW $5D41
C687 DEFB $68
C688 DEFB $FF
C689 DEFB $03 Item 5 at (11,13)
C68A DEFW $5D6D
C68C DEFB $68
C68D DEFB $FF
C68E DEFB $FF Terminator
The next 37 bytes are copied to 808F and define the portal graphic and its location.
portal05
C68F DEFB $0E Attribute
C690 DEFB $FF,$FF,$81,$81,$BF,$FD,$BF,$FD Graphic data
C698 DEFB $B0,$0D,$B0,$0D,$B0,$0D,$F0,$0F
C6A0 DEFB $F0,$0F,$B0,$0D,$B0,$0D,$B0,$0D
C6A8 DEFB $BF,$FD,$BF,$FD,$81,$81,$FF,$FF
C6B0 DEFW $5C1D Location in the attribute buffer at 5C00: (0,29)
C6B2 DEFW $601D Location in the screen buffer at 6000: (0,29)
The next eight bytes are copied to 80B4 and define the item graphic.
item05
C6B4 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.
C6BC DEFB $3F Air
The next byte is copied to 80BD and initialises the game clock.
C6BD DEFB $80 Game clock
The next 28 bytes are copied to 80BE and define the horizontal guardians.
C6BE DEFB $46 Horizontal guardian 1: y=8, initial x=6, 6<=x<=13, speed=normal
C6BF DEFW $5D06
C6C1 DEFB $68
C6C2 DEFB $00
C6C3 DEFB $06
C6C4 DEFB $0D
C6C5 DEFB $43 Horizontal guardian 2: y=8, initial x=14, 14<=x<=21, speed=normal
C6C6 DEFW $5D0E
C6C8 DEFB $68
C6C9 DEFB $01
C6CA DEFB $0E
C6CB DEFB $15
C6CC DEFB $45 Horizontal guardian 3: y=13, initial x=8, 8<=x<=20, speed=normal
C6CD DEFW $5DA8
C6CF DEFB $68
C6D0 DEFB $02
C6D1 DEFB $A8
C6D2 DEFB $B4
C6D3 DEFB $06 Horizontal guardian 4: y=13, initial x=24, 24<=x<=29, speed=normal
C6D4 DEFW $5DB8
C6D6 DEFB $68
C6D7 DEFB $03
C6D8 DEFB $B8
C6D9 DEFB $BD
C6DA DEFB $FF Terminator
The next two bytes are copied to 80DB and 80DC but are not used.
C6DB DEFB $00,$00 Unused
The next 28 bytes are copied to 80DD and define the vertical guardians.
C6DD DEFB $FF,$00,$00,$00,$00,$00,$00 Vertical guardian 1 (unused)
C6E4 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 2 (unused)
C6EB DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 3 (unused)
C6F2 DEFB $00,$00,$00,$00,$00,$00,$00 Vertical guardian 4 (unused)
The next 7 bytes are unused.
C6F9 DEFB $00,$00,$00,$00,$00,$00,$00 Unused
The next 256 bytes are copied to 8100 and define the guardian graphics.
processing_plant_guardian0 processing_plant_guardian1 processing_plant_guardian2 processing_plant_guardian3 processing_plant_guardian4 processing_plant_guardian5 processing_plant_guardian6 processing_plant_guardian7
C700 DEFB $1F,$00,$7F,$C0,$73,$E0,$F3,$80 Guardian graphic data
C708 DEFB $FE,$00,$F8,$00,$FE,$00,$FF,$80
C710 DEFB $7F,$E0,$7F,$C0,$1F,$00,$0A,$00
C718 DEFB $0A,$00,$0A,$00,$0A,$00,$1F,$00
C720 DEFB $07,$C0,$1F,$F0,$1E,$70,$3E,$78
C728 DEFB $3F,$F8,$3E,$00,$3F,$F8,$3F,$F8
C730 DEFB $1F,$F0,$1F,$F0,$07,$C0,$02,$80
C738 DEFB $02,$80,$07,$C0,$00,$00,$00,$00
C740 DEFB $01,$F0,$07,$FC,$07,$3E,$0F,$38
C748 DEFB $0F,$E0,$0F,$80,$0F,$E0,$0F,$F8
C750 DEFB $07,$FE,$07,$FC,$01,$F0,$01,$F0
C758 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C760 DEFB $00,$7C,$01,$CF,$01,$CE,$03,$FC
C768 DEFB $03,$F0,$03,$E0,$03,$F0,$03,$FC
C770 DEFB $01,$FE,$01,$FF,$00,$7C,$00,$28
C778 DEFB $00,$28,$00,$7C,$00,$00,$00,$00
C780 DEFB $3E,$00,$F3,$80,$73,$80,$3F,$C0
C788 DEFB $0F,$C0,$07,$C0,$0F,$C0,$3F,$C0
C790 DEFB $7F,$80,$FF,$80,$3E,$00,$14,$00
C798 DEFB $14,$00,$3E,$00,$00,$00,$00,$00
C7A0 DEFB $0F,$80,$3F,$E0,$7C,$E0,$1C,$F0
C7A8 DEFB $07,$F0,$01,$F0,$07,$F0,$1F,$F0
C7B0 DEFB $7F,$E0,$3F,$E0,$0F,$80,$0F,$80
C7B8 DEFB $00,$00,$00,$00,$00,$00,$00,$00
C7C0 DEFB $03,$E0,$0F,$F8,$0E,$78,$1E,$7C
C7C8 DEFB $1F,$FC,$00,$7C,$1F,$FC,$1F,$FC
C7D0 DEFB $0F,$F8,$0F,$F8,$03,$E0,$01,$40
C7D8 DEFB $01,$40,$03,$E0,$00,$00,$00,$00
C7E0 DEFB $00,$F8,$03,$FE,$07,$CE,$01,$CF
C7E8 DEFB $00,$7F,$00,$1F,$00,$7F,$01,$FF
C7F0 DEFB $07,$FE,$03,$FE,$00,$F8,$00,$50
C7F8 DEFB $00,$50,$00,$50,$00,$50,$00,$F8
Prev: C000 Up: Map Next: C800