openMSX on Mac help request

By blake

Rookie (17)

blake's picture

20-05-2021, 22:59

Hi

I've discovered openMSX just recently and successfully added my old MSX2 computer I had as hardware device (Sony HB-F500p). I love it. I'd like to program some basic again, which I did and loved so much in the past. However, my memory is a bit rusty and have two questions:
- How do I quit a program with endless loop? When I press F8, it only pauses, but does not quit the program.
- How do I save the program? I tried with csave, but my MacBook does not have a cassette recorder obviously and I can't find the file on disk.

(Forgive me for having these noob questions)

Best,
Blake

Login or register to post comments

By Grauw

Ascended (10706)

Grauw's picture

20-05-2021, 23:41

1. CTRL-STOP (CTRL-F8)
2. Easiest is to mount an empty directory on your Mac’s drive as a diskette by passing it on the command line (-diska path/to/dir) or typing in the console (diska path/to/dir) and then in Basic type SAVE "FILE.BAS" / LOAD "FILE.BAS" to save and load respectively. Alternatively you can save to a disk image but it won’t be as easily accessible from your Mac. For more info see the manual.

By blake

Rookie (17)

blake's picture

20-05-2021, 23:41

Thank you for the swift answer. I'll test it immediately.

Another question: I think the emulator is running on 60Hz, but I'm used to the speed of 50Hz. I've searched in the menu for an option to change that, but I think I overlook it. Is it possible in openMSX to set the speed to 50Hz?

By Grauw

Ascended (10706)

Grauw's picture

20-05-2021, 23:44

If you use the Sony HB-F500P machine it should be European and run at 50 Hz.

On MSX2 machines you can switch frequency in MSX-BASIC with the VDP(10)=0 (60Hz) and VDP(10)=2 (50Hz) commands.

By pgimeno

Champion (328)

pgimeno's picture

21-05-2021, 17:11

Additional notes to what Grauw said:

-In the console, enter the path surrounded by curly braces {...} to prevent problems with characters that could have an unexpected meaning.
-As far as I know, the frequency of your video mode isn't changed by OpenMSX, which will repeat frames as necessary to adapt to your video mode's frame rate. If your monitor supports 50 or 100 Hz and your system provides a mode with that frequency, the image will be great, but if not, you may see either stuttering or tearing depending on your vsync setting.

By blake

Rookie (17)

blake's picture

27-05-2021, 14:36

I'm a bit of unlucky with reading or writing to disk. I tried 2 methods, folder mount and disk image mount. I created the disk image with diskmanipulator create /path/to/floppy.dsk 720 At first, I can read and write self written basic programs to floppy and they appear when using the files command. But after a while, I get the error Disk full. Ejecting and re-inserting the disk does not resolve the issue. The files that are saved with this error have size 0kb.

Am I doing something wrong?

The disk cannot be full. The files are only a couple of lines long and the disk on the host computer has over 300Gb free space.

By Manuel

Ascended (19300)

Manuel's picture

27-05-2021, 21:30

Which MSX model do are you emulating?

By blake

Rookie (17)

blake's picture

27-05-2021, 22:07

I'm emulating a Sony HB-F500P. I chose this rom because the original machine had a floppy drive too. But I'm happy to switch to another rom if you advice that.

If you need more info or debug logs, I'm happy to provide.

Actually I thought I had a Sony HB-F500P in the past, but the machine had 256Kb. So I think it was not the HB-F500P but the HB-F700P that I owned.

By Manuel

Ascended (19300)

Manuel's picture

28-05-2021, 00:19

See https://github.com/openMSX/openMSX/issues/1360

Looks like something weird is going on with HB-F500P emulation. Please try the HB-F700P in the meatime.