home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_26_1988_Transactor_Publishing.d64
/
far.demo_test
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
954b
|
36 lines
100 rem *** far-sys demo/test ***
110 far=51200
120 ck=0
130 readd:ifd=-1then150
140 ck=ck+d:goto130
150 ifck<>6830thenprint"data statement error!":end
160 restore
170 rem *** poke routine to $f000 ***
180 fori=0to55:readd:poke61440+i,d:next
190 rem *** poke routine d-block ***
200 poke56334,peek(56334)and254:rem turn off timer irqs
210 poke1,peek(1)and251:rem switch in chr rom
220 fori=0to8:readd:poke53248+i,d:next
230 poke1,peek(1)or4:rem put back i/o
240 poke56334,peek(56334)or1:rem enable irq
250 printchr$(147);
260 poke far+6,3:sys far,61440:rem execute routine under kernal
270 gosub320
280 printchr$(19);:fori=0to255:print"a";:next
290 gosub320
300 poke far+6,5:sys far,53248:rem execute routine in d-block
310 end
320 for t=0to1500:next
330 return:rem waste some time
340 rem *** underkern ***
350 data238,32,208,169,255,160,240,132
360 data20,133,21,24,8,104,141,15
370 data3,162,10,160,17,32,44,240
380 data169,189,160,205,132,20,133,21
390 data8,104,141,15,3,169,255,170
400 data32,44,240,96,141,12,3,142
410 data13,3,140,14,3,76,3,200
420 rem *** move under d-block ***
430 data162,0,254,0,4,232,208
440 data250,96,-1