This repository was archived by the owner on Jan 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitmap.asm
More file actions
150 lines (121 loc) · 1.7 KB
/
bitmap.asm
File metadata and controls
150 lines (121 loc) · 1.7 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
macro raster_update
ld sp, ix
pop bc
pop de
pop hl
exx
pop bc
pop de
pop hl
ld sp, iy
push hl
push de
push bc
exx
push hl
push de
push bc
ld bc, 12
add ix, bc
mend
display_bitmap:
ld (.sp_save), sp
ld iy, 0xd000+27
ld bc, 40
ld a, att_height
@draw_attributes:
ld sp, iy
ld hl, 0x3b3b
push hl
push hl
push hl
push hl
push hl
push hl
add iy, bc
dec a
jp nz, @draw_attributes
.run:
ld hl, vblnk
ld a, 0x7f
@waitb:
cp (hl)
jp nc, @waita
@waita:
cp (hl)
jp c, @waitb
xor a
@loop:
ld iy, 0xd800+27
.text equ $+2
ld ix, 0x0000
raster_update
ld hl, vblnk
ld a, 0x7f
@wait0:
cp (hl)
jp nc, @wait0
ld a, 25
jp @line01
@line00:
raster_update
@line01:
raster_update
@line02:
raster_update
@line03:
raster_update
@line04:
raster_update
@line05:
raster_update
@line06:
raster_update
@line07:
raster_update
ld c, 40
add iy, bc
dec a
jp nz, @line00
ld iy, 0xd800+27
raster_update
ld hl, vblnk
ld a, 0x7f
@wait1:
cp (hl)
jp nc, @wait1
ld a, 25
jp @line11
@line10:
raster_update
@line11:
raster_update
@line12:
raster_update
@line13:
raster_update
@line14:
raster_update
@line15:
raster_update
@line16:
raster_update
@line17:
raster_update
ld c, 40
add iy, bc
dec a
jp nz, @line10
ld hl, frame
dec (hl)
jp nz, @loop
inc hl
dec (hl)
jp nz, @loop
.sp_save equ $+1
ld sp, 0x0000
ret
txt_width = 12
txt_height = 200
att_width = 12
att_height = 25