Save files in fMSX

Por Den_Zurin

Supporter (4)

Imagen del Den_Zurin

03-06-2009, 02:58

Hi all!
I downloaded fMSX (Linux version), it works, but can't save files. Example:
1) I create empty disk image:

$ ./wrdsk DISK.DSK

2) run fMSX:

$ ./fmsx -diska DISK.DSK

3) type program:

10 PRINT "Hello, World!"

4) save it:

SAVE "HELLO"

fMSX prints "OK". When emulator is runned, program may be loaded ( LOAD "HELLO" ). But I exit from fMSX and run it now, program can't load - fMSX prints "File not found" (also prints this message when I type FILES command).
What I can correctly save and load files?

Login sesión o register para postear comentarios

Por cax

Prophet (3736)

Imagen del cax

03-06-2009, 07:03

I don't have enough time to check it on Linux now so I will try to help you later.
In the meantime you can try openMSX emulator.

I also cordially invite you to the Russian forum at http://ru.msx.org

Por cax

Prophet (3736)

Imagen del cax

04-06-2009, 11:22

In this version you should save DSK file back for persistance. Do it using F8 menu.
On the other side, in this version you can create new and empty DSK image via menu,
but I personally don't like this change in fmsx behavior.

Por Den_Zurin

Supporter (4)

Imagen del Den_Zurin

05-06-2009, 04:59

Also you can change sources. In MSX.c file find this strings:

/* Start execution of the code */
  if(Verbose) printf("RUNNING ROM CODE...\n");
  A=RunZ80(&CPU);

And add new code after it:

if (DSKName[0])
    SaveFDI(&FDD[0],DSKName[0],FMT_DSK);
  if (DSKName[1])
    SaveFDI(&FDD[1],DSKName[1],FMT_DSK);

Emulator will save DSK files before exit automatically.