-
Notifications
You must be signed in to change notification settings - Fork 10
/
charset11.s
43 lines (36 loc) · 1.25 KB
/
charset11.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
processor 6502
include memory.s
include mainsym.s
org lvlCodeStart
UpdateLevel: inc bgDelay
lda bgDelay
and #$03
bne SkipLava1
ldy chars+254*8+7
ldx #$06
ScrollLava1: lda chars+254*8,x
sta chars+254*8+1,x
dex
bpl ScrollLava1
sty chars+254*8
SkipLava1: lda bgDelay
and #$07
bne SkipLava2
ldy chars+255*8+7
ldx #$02
ScrollLava2: lda chars+255*8+4,x
sta chars+255*8+5,x
dex
bpl ScrollLava2
sty chars+255*8+4
SkipLava2: rts
bgDelay: dc.b 0
org charInfo
incbin bg/world11.chi
incbin bg/world11.chc
org chars
incbin bg/world11.chr
org charsetLoadProperties
dc.b 7 ;Water splash color override
dc.b $81 ;Water toxicity delay counter ($80=not affected by filter)
dc.b 20 ;Air toxicity delay counter