macOS - Emulator supporting autolaunch .dsk from command line

Started by pacomix, 22:32, 11 April 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pacomix

Hi folks! I have been porting my build pipeline to macOS and I'm stuck with the last step. Launching of an emulator with the generated .dsk and autoload the generated program.

In Windows I was using WinAPE that was even supporting the loading of symbol files and has a fairly good debugger but in Mac I'm totally lost. I tried Retro Virtual Machine that is quite quite good but it doesn't support autolaunching of .dsk 's from command line.

Any suggestion for a good Emulator that supports autolaunching of .dsk and decent debugging capabilities?

Thanks beforehand!!!


pacomix

I tried although unfortunately it exits immediately after opening it in my macOS.

robcfg

Quote from: pacomix on 23:16, 13 April 22I tried although unfortunately it exits immediately after opening it in my macOS.
A little more information would be useful.

As in which image you're trying to run, which OS, if you compiled it yourself or not, any error messages...

On my Catalina machine
./cpcec retrob.dsk works like a charm.

megachur

You also use mine CPCEmuPower with this arguments :

Usage: CPCEPower_SDL [options]
 Options:
    -h, --help
    -f, --fullscreen
    -w, --windowx - set horizontal x position of principal window
    -y, --windowx - set vertical y position of principal window
    -z, --grabmouse - set mouse grabbing on main window
    -n, --nosound - disable sound
    -d, --digiblaster - enable digiblaster
    -q, --audiofrequency=48000, 96000 or 192000 - desired audio frequency - default is 44100Hz
    -v, --volsound - volume of the sound (0 (nosound) -> 128 (max volume))
    -j, --joystick - enable joystick
    -x, --scanlines - enable CTM monitor scanlines
    -c, --cpc=464, 664, 6128, 464+, 6128+ or GX4000
    -t, --crtc=0,1,2 or 4
    -m, --mem=memory to allocate in Kilo Bytes
    -0, --dsk0=dsk, raw or ipf file to load in floppy drive unit 0
    -1, --dsk1=dsk, raw or ipf file to load in floppy drive unit 1
    -k, --tape=cdt, csw or wave file to load as k7 in tape player
    -p, --cpr=cartridge or extended memory cartridge file to load for cpc plus or gx4000"
    -s, --sna=sna or --snr=snr file to load in memory
    -u, --urom=rom number select
    -r, --rom=rom file to load in rom number selected
    -l, --lrom=rom file to load in low rom (OS)
    -e, --autotape - autoload tape
    -a, --auto=name of the file to autoload (don't forget to add run" for example -a "run\"disc")
    -g, --gunstick to activate MHT gunStick

the binary are here : version 2105

example for the MacOS binary :

CPCEPower_SDL_MacOS -0 mydisk.dsk

Redbug

And on RetroVirtualMachine:

"/Applications/Retro Virtual Machine 2.app/Contents/MacOS/Retro Virtual Machine 2" -w -b=cpc6128 -i ${workspaceRoot}/puzzleb.dsk -c=run\"disc\"
I use it in Visual Studio Code for all my devs. It runs the disc.bas loader at full speed. Just do CMD+E to resume the realtime speed.

And the run command in tasks.json

{
    "type": "process",
    "label": "SDCC - Retro Virtual Machine",
    "command": "open",
    "args": [
        "-a",
        "/Applications/Retro Virtual Machine 2.app/Contents/MacOS/Retro Virtual Machine 2",
        "--args",
        "-w",
        "-b=cpc6128",
        "-i",
        "${workspaceRoot}/puzzleb.dsk",
        "-c=run\"disc\"\\n"
    ]
}
RedBug/Crazy Piri
Our productions on itch.io

pacomix

Quote from: Redbug on 10:05, 15 April 22And on RetroVirtualMachine:

"/Applications/Retro Virtual Machine 2.app/Contents/MacOS/Retro Virtual Machine 2" -w -b=cpc6128 -i ${workspaceRoot}/puzzleb.dsk -c=run\"disc\"
I use it in Visual Studio Code for all my devs. It runs the disc.bas loader at full speed. Just do CMD+E to resume the realtime speed.

And the run command in tasks.json

{
    "type": "process",
    "label": "SDCC - Retro Virtual Machine",
    "command": "open",
    "args": [
        "-a",
        "/Applications/Retro Virtual Machine 2.app/Contents/MacOS/Retro Virtual Machine 2",
        "--args",
        "-w",
        "-b=cpc6128",
        "-i",
        "${workspaceRoot}/puzzleb.dsk",
        "-c=run\"disc\"\\n"
    ]
}

I see these options are undocumented and/or I never tried to run the command from the command line (I'm getting old! haha). But thanks a million. Until now RVM, from what I have seen, is a really nice emulator for the Mac. Only if it supported loading of .sym files and slightly improved debugger it would be the best. Right at the moment, to my knowledge, that's something that only WinAPE supports.

Thanks a million!

mahlemiut

MAME has -autoboot_command to run a command on startup, and -autoboot_delay to determine the time (in seconds) when the command should start being entered.
- Barry Rodewald

Powered by SMFPacks Menu Editor Mod