home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1992 December
/
1992-12.d64
/
spdram.cnvt
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
1KB
|
32 lines
0 clr
10 rem copyright 1992 - compute publications intl ltd - all rights reserved
15 for i=9330 to 9411:reada:pokei,a:b=b+a:nexti
20 ifb<>7836 then print"error in data statements":stop
25 rem - insert jmp 9330 ($2472) -
30 poke2854,114:poke2855,36:poke9070,0
35 rem - insert wedge at 2665-2670 ($0a69-$0a6e) -
40 poke2665,76:poke2666,179:poke2667,36:poke2668,234:poke2669,234
45 rem - return to basic area and save modified speedcript -
50 poke43,1:poke44,8:poke45,196:poke46,36:save"speedram-64",8
55 rem - compare acc to ctrl-key values and branch to eight or nine
60 data 201,25,240,7,201,14,240,16
65 rem - if no match jump to wedge
70 data 76,187,36
75 rem - if eight, lda #8 and jsr to store, print 8 then jump to wedge -
80 data 169,8,32,151,36,169,56
85 data 141,39,4,76,187,36
90 rem - if nine, lda #9 and jsr to store, print 9 then jump to wedge -
95 data 169,9,32,151,36,169
100 data 57,141,39,4,76,187,36
105 rem - store values of eight or nine -
110 data 141,235,18,141,44
115 data 19,141,154,20,141,241
120 data 22,141,79,23,141,223
125 data 24,141,227,26,141,91
130 data 27,141,161,27,96
135 rem - get last device and put on command line -
140 data 165,186,24,105,48,141,39,4
145 rem - wedge, insert commands replaced at 2665-2670 and return to 2670 -
150 data 160,0,140,113,36
155 data 76,110,10,0