home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disk User Volume 3 #7
/
Commodore_Disk_User_Vol.3_7_1990_-.d64
/
maze.memorychk
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
610b
|
21 lines
10 rem memory checker
100 poke 53280,0:poke 53281,11
110 print"[147][205]emory [195]hecker"
120 print"[183][183][183][183][183][183][183][183][183][183][183][183][183][183]"
130 print"[215]hat are the dimensions or your maze:"
140 input"horizontal:";h
150 input"vertical :";v
160 if h>63 or v>255 then print"[212]oo [194]ig ! [212]ry again!":goto 140
170 if h<1 or v<1 then print"[212]oo [211]mall ! [212]ry [193]gain!":goto 140
180 c=1
190 if h<c then 210
200 c=c*2:goto 190
210 print"[212]his"h"x"v"maze fits into the:"
220 print"0 -";c-1;"category."
230 print"[193]nd so will need:"
240 print"";c"x"v+1"bytes ("c*(v+1)")
250 [153]"which isstop"[181](c[172](v[170]1)[173]256[170].99)[172]256"bytes to the nearest 256."
1000 [133] "(NULL)ry another ycmdcmdcmd";yn$
1010 [139] [200](yn$,1)[178]"y" [167] [138]
1020 [153]"loadpeekye !"