c128 ram check

  • Thread starter Thread starter mjnurney
  • Start date Start date
  • Replies Replies 5
  • Views Views 1521

mjnurney

we live as we dream. Alone.
AmiBayer
Joined
Aug 27, 2010
Posts
9,473
Country
england
Region
Towcester
can anyone run this program or type the following code in a C128 in C128 mode please.

im curious why i get ?out of ram errors on some (most) 128 programs.

PRINT FRE(0)

and then

PRINT FRE(1)

i get (0) 58109 bytes free (ram bank 0)
i get (1) 64194 bytes free (ram bank1)

are these values correct for the C128 ? in C64 mode i get 38911 bytes free.

thanks
mike.

PS

if you run the prog , the values will be slightly lower because of the program.
 

Attachments

Last edited:
i get (0) 58109 bytes free (ram bank 0)
i get (1) 64194 bytes free (ram bank1)

are these values correct for the C128 ? in C64 mode i get 38911 bytes free.

Bank 0 looks right. I would expect bank 1 to be 64256 immediately after a reset.

38911 is correct for 64 mode.

im curious why i get ?out of ram errors on some (most) 128 programs.

Are you by any chance loading the programs with LOAD "*",8,1 ?

Most C128 disk programs will autoload by simply putting the disk in and resetting the computer.

If that doesn't work try pressing Shift-Run/Stop. That will do a DLOAD"* followed by RUN.

To load and run a named program just type RUN "programname"

Hope this helps.
Paul.
 
thank for the info but im using an SD2iec and not a real disk drive at the mo...

and yes im using load "...",8

:-)

---------- Post added at 01:01 ---------- Previous post was at 00:54 ----------

i havent tried DLoad , hang on i will

---------- Post added at 01:42 ---------- Previous post was at 01:01 ----------

Info found on the web : The free RAM is divided into two distinct segments: 58,112 bytes in block 0 for BASIC program text and 64,256 bytes in block 1 for variables and strings. (For comparison, the Commodore offers 38,911 bytes for program text and variables combined.)
 
Dload gets the ?out of memory error

but VICE reports (128 mode)
64194
58109

so my ram is okay , its either me or the sd2iec
 
thank for the info but im using an SD2iec and not a real disk drive at the mo...

Okay, in that case you can autoboot a disk by mounting the image:

OPEN15,8,15,"CD:diskimage.D64":CLOSE15

(or @CD:diskimage.D64 if you have JiffyDOS)

then typing BOOT

and yes im using load "...",8

LOAD"...",8 is the same as DLOAD"... so that should be okay.
If you were using LOAD"...",8,1 that could cause the out of memory error.

Dload gets the ?out of memory error

Just a thought, are you trying to load a disk image, i.e. LOAD"something.D64",8 ?

Disk images need to be mounted first with the OPEN15,8,15,"CD:... command.
Then you can use the normal commands to work on the disk: DIRECTORY, LOAD, DLOAD, RUN, BOOT etc.
 
Back
Top Bottom