-
Notifications
You must be signed in to change notification settings - Fork 10
/
charset01.s
36 lines (29 loc) · 1.02 KB
/
charset01.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
processor 6502
include memory.s
org lvlCodeStart
UpdateLevel: inc rainDelay
lda rainDelay
and #$03
bne UL_SkipRain
lda chars+43*8+7
pha
ldx #$06
UL_Rain: lda chars+43*8,x
sta chars+43*8+1,x
sta chars+44*8+1,x
dex
bpl UL_Rain
pla
sta chars+43*8
sta chars+44*8
UL_SkipRain: rts
rainDelay: dc.b 0
org charInfo
incbin bg/world01.chi
incbin bg/world01.chc
org chars
incbin bg/world01.chr
org charsetLoadProperties
dc.b 0 ;Water splash color override
dc.b 0 ;Water toxicity delay counter ($80=not affected by filter)
dc.b 0 ;Air toxicity delay counter