home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_25_1988_Transactor_Publishing.d64
/
rs232hardcopy
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
48 lines
100 ad=49152
110 for t=0 to 94:read x:poke 49152+t,x:next
120 :
130 rem set jmp address for open
140 ol=peek (794):oh=peek (795)
150 poke ad+24,ol:poke ad+25,oh
160 ah=int(ad/256):poke 794,ad-(256*ah):poke 795,ah
170 :
180 rem set rs-232 output buffer address
190 bh=int((ad+96)/256):bl=ad+96-(256*bh)
200 poke ad+16,bl:poke ad+18,bh
210 :
220 rem set baud rate
230 poke ad+11,7
240 :
250 rem set temporary storage
260 sh=int((ad+95)/256):sl=ad+95-(sh*256)
270 poke ad+29,sl:poke ad+30,sh
280 poke ad+38,sl:poke ad+39,sh
290 poke ad+87,sl:poke ad+88,sh
300 poke ad+90,sl:poke ad+91,sh
310 :
320 rem add linefeed 10 yes/0 no
330 poke ad+45,10
340 :
350 rem set ascii conversion flag (56 yes/24 no)
360 poke ad+51,56
370 :
380 rem set jmp address for print
390 pl=peek (806):ph=peek (807)
400 poke ad+47,pl:poke ad+48,ph
410 poke ad+93,pl:poke ad+94,ph
420 ph=int((ad+28)/256):pl=ad+28-(256*ph)
430 poke 806,pl:poke 807,ph
440 :
1000 data 165,186,201,4,208,17,169,2
1010 data 133,186,169,7,141,147,2,169
1020 data 96,162,192,133,249,134,250,32
1030 data 74,243,24,96,141,95,192,165
1040 data 154,201,2,208,52,173,95,192
1050 data 201,13,208,7,169,10,32,202
1060 data 241,169,13,56,144,32,201,65
1070 data 144,9,201,91,176,5,24,105
1080 data 32,208,19,201,193,144,9,201
1090 data 219,176,5,56,233,128,208,6
1100 data 201,20,208,2,169,8,141,95
1110 data 192,173,95,192,76,202,241