Prev: F400 Up: Map Next: FC00
F800: Solar Power Generator (teleport: 256)
Used by the routine at 8684.
solar_power_generator
The first 512 bytes are the attributes that define the layout of the cavern.
F800 DEFB $16,$16,$16,$24,$24,$24,$24,$24 Attributes
F808 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F810 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F818 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F820 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F828 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F830 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F838 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F840 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F848 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F850 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F858 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F860 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F868 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F870 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F878 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F880 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F888 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F890 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F898 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F8A0 DEFB $16,$24,$24,$20,$20,$24,$24,$24
F8A8 DEFB $24,$20,$20,$20,$20,$20,$20,$24
F8B0 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F8B8 DEFB $20,$20,$20,$20,$20,$20,$20,$16
F8C0 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F8C8 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F8D0 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F8D8 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F8E0 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F8E8 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F8F0 DEFB $24,$24,$24,$20,$20,$20,$24,$24
F8F8 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F900 DEFB $16,$20,$20,$24,$24,$24,$24,$24
F908 DEFB $24,$24,$24,$24,$24,$20,$20,$20
F910 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F918 DEFB $20,$20,$20,$20,$20,$20,$20,$16
F920 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F928 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F930 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F938 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F940 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F948 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F950 DEFB $24,$24,$24,$20,$20,$24,$24,$24
F958 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F960 DEFB $16,$20,$20,$20,$20,$24,$24,$24
F968 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F970 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F978 DEFB $20,$20,$20,$20,$20,$20,$20,$16
F980 DEFB $16,$24,$24,$24,$24,$24,$24,$26
F988 DEFB $26,$26,$26,$24,$24,$24,$20,$20
F990 DEFB $20,$20,$20,$24,$24,$24,$24,$24
F998 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F9A0 DEFB $16,$24,$24,$24,$24,$24,$24,$24
F9A8 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F9B0 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F9B8 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F9C0 DEFB $16,$16,$16,$24,$24,$24,$24,$24
F9C8 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F9D0 DEFB $24,$24,$24,$24,$24,$24,$24,$24
F9D8 DEFB $24,$24,$24,$24,$24,$24,$24,$16
F9E0 DEFB $16,$16,$16,$20,$20,$20,$20,$20
F9E8 DEFB $20,$20,$20,$20,$20,$20,$20,$20
F9F0 DEFB $20,$20,$20,$20,$20,$20,$20,$16
F9F8 DEFB $20,$20,$20,$20,$20,$20,$20,$16
The next 32 bytes are copied to 8000 and specify the cavern name.
FA00 DEFM " Solar Power Generator " 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_18 floor_18 crumbling_floor_18 wall_18 conveyor_18 nasty1_18 nasty2_18 extra_18
FA20 DEFB $24,$00,$00,$00,$00,$00,$00,$00,$00 Background
FA29 DEFB $20,$FF,$FF,$DB,$6E,$C5,$40,$00,$00 Floor
FA32 DEFB $02,$FF,$DB,$A5,$24,$52,$20,$08,$00 Crumbling floor (unused)
FA3B DEFB $16,$22,$FF,$88,$FF,$22,$FF,$88,$FF Wall
FA44 DEFB $26,$F0,$66,$F0,$66,$00,$99,$FF,$00 Conveyor
FA4D DEFB $44,$44,$28,$94,$51,$35,$D6,$58,$10 Nasty 1 (unused)
FA56 DEFB $05,$7E,$3C,$1C,$18,$18,$08,$08,$08 Nasty 2 (unused)
FA5F 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.
FA68 DEFB $A0 Pixel y-coordinate * 2 (see 8068)
FA69 DEFB $00 Animation frame (see 8069)
FA6A DEFB $00 Direction and movement flags: facing right (see 806A)
FA6B DEFB $00 Airborne status indicator (see 806B)
FA6C DEFW $5D4E Location in the attribute buffer at 5C00: (10,14) (see 806C)
FA6E 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.
FA6F DEFB $00 Direction (left)
FA70 DEFW $7887 Location in the screen buffer at 7000: (12,7)
FA72 DEFB $04 Length
The next byte is copied to 8073 and specifies the border colour.
FA73 DEFB $03 Border colour
The next byte is copied to 8074, but is not used.
FA74 DEFB $00 Unused
The next 25 bytes are copied to 8075 and specify the location and initial colour of the items in the cavern.
FA75 DEFB $23 Item 1 at (1,30)
FA76 DEFW $5C3E
FA78 DEFB $60
FA79 DEFB $FF
FA7A DEFB $24 Item 2 at (5,1)
FA7B DEFW $5CA1
FA7D DEFB $60
FA7E DEFB $FF
FA7F DEFB $25 Item 3 at (12,30)
FA80 DEFW $5D9E
FA82 DEFB $68
FA83 DEFB $FF
FA84 DEFB $FF,$FF,$FF,$FF,$FF Item 4 (unused)
FA89 DEFB $00,$FF,$FF,$FF,$FF Item 5 (unused)
FA8E DEFB $FF Terminator
The next 37 bytes are copied to 808F and define the portal graphic and its location.
portal18
FA8F DEFB $4E Attribute
FA90 DEFB $FF,$FF,$80,$01,$BF,$FD,$A0,$05 Graphic data
FA98 DEFB $AF,$F5,$A8,$15,$AB,$D5,$AA,$55
FAA0 DEFB $AA,$55,$AB,$D5,$A8,$15,$AF,$F5
FAA8 DEFB $A0,$05,$BF,$FD,$80,$01,$FF,$FF
FAB0 DEFW $5C21 Location in the attribute buffer at 5C00: (1,1)
FAB2 DEFW $6021 Location in the screen buffer at 6000: (1,1)
The next eight bytes are copied to 80B4 and define the item graphic.
item18
FAB4 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.
FABC DEFB $3F Air
The next byte is copied to 80BD and initialises the game clock.
FABD DEFB $F0 Game clock
The next 28 bytes are copied to 80BE and define the horizontal guardians.
FABE DEFB $26 Horizontal guardian 1: y=3, initial x=24, 23<=x<=29, speed=normal
FABF DEFW $5C78
FAC1 DEFB $60
FAC2 DEFB $00
FAC3 DEFB $77
FAC4 DEFB $7D
FAC5 DEFB $21 Horizontal guardian 2: y=6, initial x=28, 22<=x<=29, speed=normal
FAC6 DEFW $5CDC
FAC8 DEFB $60
FAC9 DEFB $00
FACA DEFB $D6
FACB DEFB $DD
FACC DEFB $A2 Horizontal guardian 3: y=9, initial x=29, 23<=x<=29, speed=slow
FACD DEFW $5D3D
FACF DEFB $68
FAD0 DEFB $07
FAD1 DEFB $37
FAD2 DEFB $3D
FAD3 DEFB $26 Horizontal guardian 4: y=13, initial x=16, 13<=x<=29, speed=normal
FAD4 DEFW $5DB0
FAD6 DEFB $68
FAD7 DEFB $00
FAD8 DEFB $AD
FAD9 DEFB $BD
FADA DEFB $FF Terminator
The next two bytes are copied to 80DB and 80DC but are not used.
FADB DEFB $00,$00 Unused
The next 28 bytes are copied to 80DD and define the vertical guardians.
FADD DEFB $26 Vertical guardian 1: x=5, initial y=64, 2<=y<102, initial y-increment=3
FADE DEFB $00
FADF DEFB $40
FAE0 DEFB $05
FAE1 DEFB $03
FAE2 DEFB $02
FAE3 DEFB $66
FAE4 DEFB $22 Vertical guardian 2: x=11, initial y=56, 48<=y<102, initial y-increment=-2
FAE5 DEFB $01
FAE6 DEFB $38
FAE7 DEFB $0B
FAE8 DEFB $FE
FAE9 DEFB $30
FAEA DEFB $66
FAEB DEFB $21 Vertical guardian 3: x=16, initial y=80, 4<=y<80, initial y-increment=1
FAEC DEFB $02
FAED DEFB $50
FAEE DEFB $10
FAEF DEFB $01
FAF0 DEFB $04
FAF1 DEFB $50
FAF2 DEFB $FF,$00,$00,$00,$00,$00,$00 Vertical guardian 4 (unused)
The next 7 bytes are unused.
FAF9 DEFB $00,$00,$00,$00,$00,$00,$00 Unused
The next 256 bytes are copied to 8100 and define the guardian graphics.
solar_power_generator_guardian0 solar_power_generator_guardian1 solar_power_generator_guardian2 solar_power_generator_guardian3 solar_power_generator_guardian4 solar_power_generator_guardian5 solar_power_generator_guardian6 solar_power_generator_guardian7
FB00 DEFB $03,$40,$0F,$70,$3F,$3C,$3F,$4C Guardian graphic data
FB08 DEFB $5F,$66,$5F,$76,$9F,$7F,$00,$7F
FB10 DEFB $8E,$00,$8E,$FF,$46,$FE,$40,$F2
FB18 DEFB $20,$04,$30,$0C,$0C,$30,$02,$C0
FB20 DEFB $03,$C0,$0F,$F0,$3F,$AC,$3F,$CC
FB28 DEFB $5F,$C6,$47,$B6,$99,$BF,$9E,$7F
FB30 DEFB $8E,$7F,$8D,$9F,$45,$E6,$41,$F2
FB38 DEFB $20,$04,$30,$0C,$0C,$30,$03,$C0
FB40 DEFB $03,$C0,$0F,$F0,$2F,$BC,$37,$C8
FB48 DEFB $5B,$E6,$5D,$E6,$9E,$DF,$9E,$3F
FB50 DEFB $8C,$7F,$8B,$7F,$47,$BE,$41,$C2
FB58 DEFB $00,$04,$30,$04,$0C,$30,$03,$C0
FB60 DEFB $03,$C0,$0B,$F0,$3D,$BC,$3D,$CC
FB68 DEFB $5D,$E6,$5E,$F4,$9E,$E3,$9E,$1F
FB70 DEFB $88,$7F,$87,$7F,$07,$7E,$41,$B2
FB78 DEFB $20,$04,$30,$0C,$0C,$10,$03,$C0
FB80 DEFB $06,$00,$0C,$00,$18,$00,$38,$00
FB88 DEFB $74,$00,$CA,$80,$85,$C0,$03,$C0
FB90 DEFB $06,$40,$CE,$C0,$D8,$40,$FF,$C0
FB98 DEFB $E2,$00,$C8,$80,$D5,$40,$08,$80
FBA0 DEFB $01,$80,$03,$00,$06,$00,$0E,$00
FBA8 DEFB $1D,$00,$32,$A0,$21,$70,$00,$F0
FBB0 DEFB $01,$90,$63,$B0,$66,$10,$7F,$F0
FBB8 DEFB $78,$80,$62,$20,$65,$50,$02,$20
FBC0 DEFB $00,$60,$00,$C0,$01,$80,$03,$80
FBC8 DEFB $07,$40,$0C,$A8,$08,$5C,$00,$3C
FBD0 DEFB $00,$64,$30,$EC,$31,$84,$3F,$FC
FBD8 DEFB $3E,$20,$30,$88,$31,$54,$00,$88
FBE0 DEFB $00,$18,$00,$30,$00,$60,$00,$E0
FBE8 DEFB $01,$D0,$03,$2A,$02,$17,$00,$0F
FBF0 DEFB $00,$19,$06,$3B,$06,$61,$07,$FF
FBF8 DEFB $07,$88,$06,$22,$06,$55,$00,$22
Prev: F400 Up: Map Next: FC00