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 >
Commodore BASIC  |  2022-10-26  |  610b  |  21 lines

  1. 10 rem memory checker
  2. 100 poke 53280,0:poke 53281,11
  3. 110 print"[147][205]emory [195]hecker"
  4. 120 print"[183][183][183][183][183][183][183][183][183][183][183][183][183][183]"
  5. 130 print"[215]hat are the dimensions or your maze:"
  6. 140 input"horizontal:";h
  7. 150 input"vertical  :";v
  8. 160 if h>63 or v>255 then print"[212]oo [194]ig ! [212]ry again!":goto 140
  9. 170 if h<1 or v<1 then print"[212]oo [211]mall ! [212]ry [193]gain!":goto 140
  10. 180 c=1
  11. 190 if h<c then 210
  12. 200 c=c*2:goto 190
  13. 210 print"[212]his"h"x"v"maze fits into the:"
  14. 220 print"0 -";c-1;"category."
  15. 230 print"[193]nd so will need:"
  16. 240 print"";c"x"v+1"bytes ("c*(v+1)")
  17. 250 [153]"which isstop"[181](c[172](v[170]1)[173]256[170].99)[172]256"bytes to the nearest 256."
  18. 1000 [133] "(NULL)ry another  ycmdcmdcmd";yn$
  19. 1010 [139] [200](yn$,1)[178]"y" [167] [138]
  20. 1020 [153]"loadpeekye !"
  21.