/[projet1]/public/oric/routines/rasterization/linebench/display.s
Defence Force logotype

Contents of /public/oric/routines/rasterization/linebench/display.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 268 - (show annotations)
Tue Feb 9 18:44:23 2010 UTC (10 years, 1 month ago) by thrust26
File size: 3465 byte(s)
reduced space usage
1
2 #define X_SIZE 240
3 #define Y_SIZE 200
4 #define ROW_SIZE X_SIZE/6
5
6 .dsb 256-(*&255)
7
8 _HiresAddrLow .dsb Y_SIZE
9
10 .dsb 256-(*&255)
11
12 _HiresAddrHigh .dsb Y_SIZE
13
14 .dsb 256-(*&255)
15
16 .byt 0
17 _TableDiv6 .dsb X_SIZE
18
19 .dsb 256-(*&255)
20
21 .byt 0
22 _TableMod6 .dsb X_SIZE
23
24 .dsb 256-(*&255)
25
26 .byt 0
27 _TableBit6Reverse
28 .byt 32,16,8,4,2,1|$80
29 .byt 32,16,8,4,2,1|$80
30 .byt 32,16,8,4,2,1|$80
31 .byt 32,16,8,4,2,1|$80
32 .byt 32,16,8,4,2,1|$80
33 .byt 32,16,8,4,2,1|$80
34 .byt 32,16,8,4,2,1|$80
35 .byt 32,16,8,4,2,1|$80
36 .byt 32,16,8,4,2,1|$80
37 .byt 32,16,8,4,2,1|$80
38
39 .byt 32,16,8,4,2,1|$80
40 .byt 32,16,8,4,2,1|$80
41 .byt 32,16,8,4,2,1|$80
42 .byt 32,16,8,4,2,1|$80
43 .byt 32,16,8,4,2,1|$80
44 .byt 32,16,8,4,2,1|$80
45 .byt 32,16,8,4,2,1|$80
46 .byt 32,16,8,4,2,1|$80
47 .byt 32,16,8,4,2,1|$80
48 .byt 32,16,8,4,2,1|$80
49
50 .byt 32,16,8,4,2,1|$80
51 .byt 32,16,8,4,2,1|$80
52 .byt 32,16,8,4,2,1|$80
53 .byt 32,16,8,4,2,1|$80
54 .byt 32,16,8,4,2,1|$80
55 .byt 32,16,8,4,2,1|$80
56 .byt 32,16,8,4,2,1|$80
57 .byt 32,16,8,4,2,1|$80
58 .byt 32,16,8,4,2,1|$80
59 .byt 32,16,8,4,2,1|$80
60
61 .byt 32,16,8,4,2,1|$80
62 .byt 32,16,8,4,2,1|$80
63 .byt 32,16,8,4,2,1|$80
64 .byt 32,16,8,4,2,1|$80
65 .byt 32,16,8,4,2,1|$80
66 .byt 32,16,8,4,2,1|$80
67 .byt 32,16,8,4,2,1|$80
68 .byt 32,16,8,4,2,1|$80
69 .byt 32,16,8,4,2,1|$80
70 .byt 32,16,8,4,2,1|$80
71
72 .dsb 256-(*&255)
73
74 .byt 0
75 _TableBit6
76 .byt 1,2,4,8,16,32|$80
77 .byt 1,2,4,8,16,32|$80
78 .byt 1,2,4,8,16,32|$80
79 .byt 1,2,4,8,16,32|$80
80 .byt 1,2,4,8,16,32|$80
81 .byt 1,2,4,8,16,32|$80
82 .byt 1,2,4,8,16,32|$80
83 .byt 1,2,4,8,16,32|$80
84 .byt 1,2,4,8,16,32|$80
85 .byt 1,2,4,8,16,32|$80
86
87 .byt 1,2,4,8,16,32|$80
88 .byt 1,2,4,8,16,32|$80
89 .byt 1,2,4,8,16,32|$80
90 .byt 1,2,4,8,16,32|$80
91 .byt 1,2,4,8,16,32|$80
92 .byt 1,2,4,8,16,32|$80
93 .byt 1,2,4,8,16,32|$80
94 .byt 1,2,4,8,16,32|$80
95 .byt 1,2,4,8,16,32|$80
96 .byt 1,2,4,8,16,32|$80
97
98 .byt 1,2,4,8,16,32|$80
99 .byt 1,2,4,8,16,32|$80
100 .byt 1,2,4,8,16,32|$80
101 .byt 1,2,4,8,16,32|$80
102 .byt 1,2,4,8,16,32|$80
103 .byt 1,2,4,8,16,32|$80
104 .byt 1,2,4,8,16,32|$80
105 .byt 1,2,4,8,16,32|$80
106 .byt 1,2,4,8,16,32|$80
107 .byt 1,2,4,8,16,32|$80
108
109 .byt 1,2,4,8,16,32|$80
110 .byt 1,2,4,8,16,32|$80
111 .byt 1,2,4,8,16,32|$80
112 .byt 1,2,4,8,16,32|$80
113 .byt 1,2,4,8,16,32|$80
114 .byt 1,2,4,8,16,32|$80
115 .byt 1,2,4,8,16,32|$80
116 .byt 1,2,4,8,16,32|$80
117 .byt 1,2,4,8,16,32|$80
118 .byt 1,2,4,8,16,32|$80
119
120
121 _GenerateTables
122 .(
123
124 ; Generate screen offset data
125 .(
126 lda #<$a000
127 sta tmp0+0
128 lda #>$a000
129 sta tmp0+1
130
131 ldx #0
132 loop
133 ; generate two bytes screen adress
134 clc
135 lda tmp0+0
136 sta _HiresAddrLow,x
137 adc #ROW_SIZE
138 sta tmp0+0
139 lda tmp0+1
140 sta _HiresAddrHigh,x
141 adc #0
142 sta tmp0+1
143
144 inx
145 cpx #Y_SIZE
146 bne loop
147 .)
148
149
150 ; Generate multiple of 6 data table
151 .(
152 lda #0 ; cur div
153 tay ; cur mod
154 tax
155 loop
156 sta _TableDiv6,x
157 pha
158 tya
159 sta _TableMod6,x
160 pla
161
162 iny
163 cpy #6
164 bne skip_mod
165 ldy #0
166 adc #0 ; carry = 1!
167 skip_mod
168
169 inx
170 cpx #X_SIZE
171 bne loop
172 .)
173 .)
174 rts
175
176
177
178
179
180
181

  ViewVC Help
Powered by ViewVC 1.1.26