annotate 3rdparty/utils/view/view_pix2.a @ 1797:3084051a2863

Updated
author boisy
date Mon, 11 Apr 2005 15:42:16 +0000
parents b7fb6a9aead4
children 37fd74e6fad8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1706
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
1 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
2 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
3 * Graphics subs for PIX picture format.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
4 * setvert: Create buffer for vertical imaging.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
5 * endvert: Trash the buffer.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
6 * pixditherline: Output one vertical row to screen.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
7 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
8
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
9 check macro
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
10 pshs b,cc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
11 ldb #\1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
12 os9 F$PErr
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
13 puls b,cc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
14 endm
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
15
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
16 ifp1
1777
b7fb6a9aead4 Removed /dd/defs so that rma could assemble
boisy
parents: 1706
diff changeset
17 use os9defs.a
1706
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
18 endc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
19
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
20 psect view_pix_gfx_a,0,0,0,0,0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
21
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
22 * vsect dp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
23 *pixfirstcol rmb 2 Declared in view_pix.a
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
24 * endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
25
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
26 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
27 * These are essentially cloned from the row-at-a-time routines in
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
28 * view_gfx.a, but since I never expect to see another graphics format
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
29 * that does column-at-a-time imaging, I decided it should be safe
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
30 * to just put them here, so I could optimize them for this format.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
31 * In order to be fully general, they just need to take into account
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
32 * the screen type (here assumed to be type 7).
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
33 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
34 vsect dp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
35 buffadd rmb 2 Address of mapped-in get/put buffer
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
36 endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
37
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
38 vsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
39 setbufCom
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
40 fdb $1b2c
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
41 fdb $0002 Group/buffer
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
42 fdb 0000 XLoc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
43 fdb 0000 YLoc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
44 fdb 4 XDim
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
45 fdb 96 YDim
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
46 endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
47
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
48 setvert:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
49 pshs x,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
50
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
51 leax setbufCom,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
52 lda <PID
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
53 sta 2,x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
54 lda <outpath
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
55 pshs y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
56 ldy #12
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
57 OS9 I$Write
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
58 lbcs _error
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
59 puls y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
60
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
61 lda <PID
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
62 ldb #2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
63 tfr d,x Set up group/buffer in X.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
64 lda #1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
65 ldb #SS.MpGPB map in buffer
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
66 pshs y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
67 ldy #1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
68 os9 I$SetStt
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
69 lbcs _error
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
70 tfr y,d
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
71 puls y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
72 stx buffadd
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
73
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
74 ldd #192 Return size of vertical buffer.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
75 puls x,y,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
76
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
77 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
78 * Endvert: Kill and unmap buffer
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
79 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
80 vsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
81 endbufCom
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
82 fcb $1b,$2a,$00,$02
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
83 endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
84
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
85 endvert:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
86 pshs a,b,x,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
87 lda <PID
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
88 ldb #2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
89 tfr d,x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
90 lda #1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
91 ldb #SS.MpGPB
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
92 pshs y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
93 ldy #0 Unmap buffer.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
94 os9 I$SetStt
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
95 puls y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
96
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
97 leax endbufCom,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
98 lda <PID
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
99 sta 2,x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
100 lda <outpath
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
101 ldy #4
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
102 OS9 I$Write
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
103 lbcs _error
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
104 puls a,b,x,y,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
105
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
106 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
107 * Ditherline:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
108 * Takes buffer pointed to by X, of size D, and dithers it into U.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
109 * 15Feb90- now buffers 4 columns, then calls putvert with all 4 cols.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
110 * 01Jun90- Changed dither patterns to 12x6, for smoother dithering.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
111 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
112 vsect dp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
113 dithmask fcb $c0 Mask off appropriate bits from dither values.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
114 dithwhich fcb 0 track which byte column we're in.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
115 endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
116
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
117 pixditherline:
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
118 pshs a,b,x,y,u
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
119 pshs y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
120 lda #$2b Approx 1/6
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
121 mul Divide by six, since we do things six bytes at a time.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
122 pshs a Save number of bytes.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
123 leay dith1table,pcr
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
124 lda <dithwhich
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
125 cmpa #1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
126 bne dithmod1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
127 leay dith2table,pcr
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
128 dithmod1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
129 cmpa #2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
130 bne dithmod2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
131 leay dith3table,pcr
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
132 dithmod2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
133 ldb <dithmask Get current dither column
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
134 pshs b
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
135 dither1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
136 ldd ,x++ Get two bytes,
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
137 lda a,y . translate to color
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
138 anda ,s . mask off only pertinent pixel
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
139 addb #16 . offset into second table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
140 ldb b,y . translate this color
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
141 andb ,s . mask off pixel
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
142 ora ,u . or new pixel into target array
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
143 orb 1,u . "
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
144 std ,u++ . store it.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
145 ldd ,x++ Get two more bytes,
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
146 adda #32 . offset into third table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
147 lda a,y . translate to color
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
148 anda ,s . mask off only pertinent pixel
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
149 addb #48 . offset into fourth table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
150 ldb b,y . translate this color
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
151 andb ,s . mask off pixel
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
152 ora ,u . or new pixel into target array
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
153 orb 1,u . "
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
154 std ,u++ . store it.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
155 ldd ,x++ Get two more bytes,
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
156 adda #64 . offset into fifth table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
157 lda a,y . translate to color
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
158 anda ,s . mask off only pertinent pixel
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
159 addb #80 . offset into sixth table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
160 ldb b,y . translate this color
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
161 andb ,s . mask off pixel
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
162 ora ,u . or new pixel into target array
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
163 orb 1,u . "
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
164 std ,u++ . store it.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
165 dec 1,s
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
166 bne dither1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
167 puls a,b
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
168 puls y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
169 ldb <dithmask
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
170 andcc #^Carry Clear carry, so we don't mung our pixel mask
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
171 rorb
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
172 rorb
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
173 bcc dither3
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
174 rorb
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
175 lbsr putvert
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
176 lda dithwhich Bump dithwhich mod 3
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
177 inca
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
178 cmpa #3
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
179 blo dithermod
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
180 clra
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
181 dithermod
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
182 sta dithwhich
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
183 dither3
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
184 stb <dithmask
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
185 puls a,b,x,y,u,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
186
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
187 dith1table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
188 fcb $00,$10,$10,$51,$51,$55,$56,$65,$69,$a6,$aa,$ba,$ae,$be,$fb,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
189 fcb $00,$01,$41,$45,$15,$55,$65,$96,$a6,$6a,$aa,$ab,$ba,$fb,$bf,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
190 dith3table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
191 fcb $00,$10,$04,$14,$51,$55,$56,$59,$9a,$a6,$aa,$ba,$eb,$ef,$fb,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
192 fcb $00,$01,$10,$51,$15,$55,$65,$65,$69,$6a,$aa,$ab,$ae,$be,$bf,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
193 dith2table
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
194 fcb $00,$10,$41,$45,$51,$55,$56,$96,$a6,$a6,$aa,$ba,$ba,$fb,$fb,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
195 fcb $00,$01,$04,$14,$15,$55,$65,$59,$9a,$6a,$aa,$ab,$eb,$ef,$bf,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
196 fcb $00,$10,$10,$51,$51,$55,$56,$65,$69,$a6,$aa,$ba,$ae,$be,$fb,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
197 fcb $00,$01,$41,$45,$15,$55,$65,$96,$a6,$6a,$aa,$ab,$ba,$fb,$bf,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
198 fcb $00,$10,$04,$14,$51,$55,$56,$59,$9a,$a6,$aa,$ba,$eb,$ef,$fb,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
199 fcb $00,$01,$10,$51,$15,$55,$65,$65,$69,$6a,$aa,$ab,$ae,$be,$bf,$ff
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
200
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
201 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
202 * Putvert
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
203 *
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
204 vsect dp
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
205 putcol rmb 2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
206 endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
207
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
208 vsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
209 putCom fdb $1b2d
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
210 fcb 0,2 Grp/Buf
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
211 putcol2 fdb 0 Xloc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
212 fdb 0 Yloc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
213 endsect
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
214
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
215 putvert
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
216 pshs a,b,x,y,u
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
217 leax putCom,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
218 ldd putcol
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
219 addd #4
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
220 std putcol
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
221 addd <pixfirstcol
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
222 std putcol2
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
223 lda <PID
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
224 sta 2,x Set group number
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
225
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
226 leax linebuff,y Copy linebuff data into get/put buffer
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
227 bsr putvert0 Copy first half of data.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
228 ldd #00
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
229 bsr putvert1 Put on screen starting at Y offset 0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
230 bsr putvert0 Copy second half.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
231 ldd #96
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
232 bsr putvert1 Put at Y offset 96.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
233 puls a,b,x,y,u,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
234
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
235 putvert0
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
236 pshs a,b,u
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
237 ldu buffadd
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
238 ldb #96
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
239 putv1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
240 lda ,x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
241 clr ,x+ Clear out linebuff as we go along.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
242 coma Complement our data.
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
243 sta ,u+
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
244 decb
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
245 bne putv1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
246 puls a,b,u,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
247
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
248 putvert1
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
249 pshs a,b,x,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
250 leax putCom,y
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
251 std 6,x
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
252 lda <outpath
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
253 ldy #8
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
254 os9 I$Write
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
255 lbcs _error
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
256 puls a,b,x,y,pc
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
257
6b23465701c0 Tim Kientzle's VIEW
boisy
parents:
diff changeset
258 endsect