home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go64!
/
Go64_1998-03_1998_CSW_Side_B.d64
/
listing
< prev
next >
Wrap
Text File
|
2023-02-26
|
4KB
|
13 lines
ready.
1000 ;-------------------------------
1010 ; vdcroutines
1020 ; version 1.0
1030 ;-------------------------------
1040 ;
1050 .ba$c000
1060 .ob"@1:vdcnew,p,w"
1070 ;
1080 ;-------------------------------
1090 ;
1100 ;
1110 jmpregwrite
1120 jmpregread
1130 jmpramwrite
1140 jmpramread
1150 low brk
1160 high brk
1170 datbyte brk
1180 regnr brk
1190 regwrite ldaregnr
1200 sta$d600
1210 regwrit1 bit$d600
1220 bplregwrit1
1230 ldadatbyte
1240 sta$d601
1250 rts
1260 ;
1270 regread ldaregnr
1280 sta$d600
1290 regread1 bit$d600
1300 bplregread1
1310 lda$d601
1320 stadatbyte
1330 rts
1340 ;
1350 ramwrite lda#18
1360 sta$d600
1370 ramwrit1 bit$d600
1380 bplramwrit1
1390 ldahigh
1400 sta$d601
1410 lda#19
1420 sta$d600
1430 ramwrit2 bit$d600
1440 bplramwrit2
1450 ldalow
1460 sta$d601
1470 lda#31
1480 sta$d600
1490 ramwrit3 bit$d600
1500 bplramwrit3
1510 ;
1520 ldadatbyte
1530 sta$d601
1540 rts
1550 ;
2350 ramread lda#18
2360 sta$d600
2370 ramread1 bit$d600
2380 bplramread1
2390 ldahigh
2400 sta$d601
2410 lda#19
2420 sta$d600
2430 ramread2 bit$d600
2440 bplramread2
2450 ldalow
2460 sta$d601
2470 lda#31
2480 sta$d600
2490 ramread3 bit$d600
2500 bplramread3
2510 lda$d601
2520 stadatbyte
2530 rts
3580 .en
ready.
ready.
10 dimh%(255):if fre(0)<>fre(1) then print"c64-mode only":stop
20 gosub 340
50 for i=1 to 4
60 poke49152+12,i
70 poke49152+13,0
80 poke49152+14,65+i
90 sys49152+6
100 next
110 print chr$(147)
120 for i=1 to 4
130 poke49152+12,i
140 poke49152+13,0
150 sys49152+9
160 printpeek(49152+14)
170 next
200 for i=0 to 255
210 poke49152+12,0
220 poke49152+13,i
230 poke49152+14,i
240 sys49152+6
250 next:print
270 for i=0 to 255
280 poke49152+12,0
290 poke49152+13,i
300 sys49152+9
310 h%(i)=peek(49152+14):next
320 for i= 0 to 255:printh%(i),;:next
330 end
340 cs=0:for i=49152 to 49301
350 readd:pokei,d:cs=cs+d:next:if 16483<>cs thenprintchr$(147)"data defekt":stop
360 return
370 data 76,16,192,76,34,192,76,52
380 data 192,76,101,192,0,0,0,0
390 data 173,15,192,141,0,214,44,0
400 data 214,16,251,173,14,192,141,1
410 data 214,96,173,15,192,141,0,214
420 data 44,0,214,16,251,173,1,214
430 data 141,14,192,96,169,18,141,0
440 data 214,44,0,214,16,251,173,13
450 data 192,141,1,214,169,19,141,0
460 data 214,44,0,214,16,251,173,12
470 data 192,141,1,214,169,31,141,0
480 data 214,44,0,214,16,251,173,14
490 data 192,141,1,214,96,169,18,141
500 data 0,214,44,0,214,16,251,173
510 data 13,192,141,1,214,169,19,141
520 data 0,214,44,0,214,16,251,173
530 data 12,192,141,1,214,169,31,141
540 data 0,214,44,0,214,16,251,173
550 data 1,214,141,14,192,96
ready.
ready.
10 dimh%(255):if fre(0)<>fre(1) then print"c64-mode only":stop
20 gosub 340
50 printchr$(147)"reg readout"
60 ba=49152
70 for i=0 to 43
80 poke ba+15,i
90 sys ba+3
100 b=peek(ba+14)
110 print b,;
120 next
130 end
340 cs=0:for i=49152 to 49301
350 readd:pokei,d:cs=cs+d:next:if16483<>cs thenprintchr$(147)"data defekt":stop
360 return
370 data 76,16,192,76,34,192,76,52
380 data 192,76,101,192,0,0,0,0
390 data 173,15,192,141,0,214,44,0
400 data 214,16,251,173,14,192,141,1
410 data 214,96,173,15,192,141,0,214
420 data 44,0,214,16,251,173,1,214
430 data 141,14,192,96,169,18,141,0
440 data 214,44,0,214,16,251,173,13
450 data 192,141,1,214,169,19,141,0
460 data 214,44,0,214,16,251,173,12
470 data 192,141,1,214,169,31,141,0
480 data 214,44,0,214,16,251,173,14
490 data 192,141,1,214,96,169,18,141
500 data 0,214,44,0,214,16,251,173
510 data 13,192,141,1,214,169,19,141
520 data 0,214,44,0,214,16,251,173
530 data 12,192,141,1,214,169,31,141
540 data 0,214,44,0,214,16,251,173
550 data 1,214,141,14,192,96
ready.