-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclr_map.asm
73 lines (62 loc) · 956 Bytes
/
clr_map.asm
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
clr_map:
ld bc,255*8 ; do not remap stars
ld hl,miz_buffer
1: xor a
rld
exx
ld hl,(clr_table)
ld e,a
ld d,0
add hl,de
ld a,(hl)
exx
rld
exx
ld hl,(clr_table)
ld e,a
ld d,0
add hl,de
ld a,(hl)
exx
rld
inc hl
dec bc
ld a,c
or b
jr nz,1b
ret
clr_table0:
clr_table1:
clr_tableE:
clr_tableD:
; BLUE
include m1.asm
clr_table2:
clr_table9:
clr_tableC:
; GREEN
include m2.asm
clr_table3:
clr_table6:
clr_tableA:
; YELLOW
include m3.asm
clr_table4:
clr_table7:
clr_table8:
; MAGENTA
include m4.asm
clr_table5:
clr_tableB:
clr_tableF:
; RED
include m5.asm
; clr_enemy_bullts:
; db 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
; db 11,11,11,15,11,11,15,11,11,11,15,11,11,11,11,11
clr_tab:
dw clr_table0,clr_table1,clr_table2,clr_table3
dw clr_table4,clr_table5,clr_table6,clr_table7
dw clr_table8,clr_table9,clr_tableA,clr_tableB
dw clr_tableC,clr_tableD,clr_tableE,clr_tableF