Menu

How to maximise memory and IO files

Anonymous
2017-01-06
2017-01-08
  • Anonymous

    Anonymous - 2017-01-06

    For me, quite often I need more of two things, and I am keen to know if there is a way to increase these values in the settings file, without causing any negative impact on the operation of the PC Basic application.

    One of them, is the quantity of files I have open with the open statement. Currently, the limit is three. I understand, that with GWBASIC, they had more than three, but held a few in reserve for their own use. Is it possible under PC-Basic to increase this quantity, without impacting on the PC-basic use of the likes of load and save etc?

    The other is, an increase in memory. I am on a Windows10 PC, with quite a lot more than 64k bytes of memory at my disposal. I may as well see if I can take advantage of all this extra memory.

    Is there a trick, or tips you can provide me with in respect either of the two above?

     
  • Rob Hagemans

    Rob Hagemans - 2017-01-06

    You're looking for the max-files option. Have a look here: http://pc-basic.org/doc/#--max-files

    Note that every additional file will reduce the available memory a bit - it's a trade-off. You can get a little bit more available memory (about 3K) by setting reserved-memory=0 (see http://pc-basic.org/doc/#--reserved-memory). Due to the ancient design (16-bit memory addresses) GW-BASIC and PC-BASIC can't address more than 64K memory.

     
  • Anonymous

    Anonymous - 2017-01-07

    Ok, it had taken a bit of experimenting and searching. I now have the settings working.

    I clearly need to remove the hash # character at the start of the line for it to work.