SpecEmu: Command Parser reference?

Struggling with Fuse or trying to find an emulator with a specific feature. Ask your questions here.
Post Reply
XoRRoX
Manic Miner
Posts: 233
Joined: Wed Jul 11, 2018 6:34 am

SpecEmu: Command Parser reference?

Post by XoRRoX »

Hello,

Does someone know if a reference for the possible commands in the Command Parser exist?

TIA
User avatar
Luzie
Manic Miner
Posts: 913
Joined: Fri May 01, 2020 2:07 pm

Re: SpecEmu: Command Parser reference?

Post by Luzie »

I don´t know.

But what do you need?

Most options can be set with SpecEmu.ini or SpecEmuWindow.ini (depends on SpecEmu version).
XoRRoX
Manic Miner
Posts: 233
Joined: Wed Jul 11, 2018 6:34 am

Re: SpecEmu: Command Parser reference?

Post by XoRRoX »

I think there might be very useful commands for debugging in that function.
User avatar
Luzie
Manic Miner
Posts: 913
Joined: Fri May 01, 2020 2:07 pm

Re: SpecEmu: Command Parser reference?

Post by Luzie »

XoRRoX wrote: Fri Nov 25, 2022 7:08 pm I think there might be very useful commands for debugging in that function.
If I take look into SpecEmu.exe I think there maybe these commandline parameters:
-fullscreen
-windowed
-window
-snowcrash
-cbi95nmi
-sna128
-z80v1 (=from Changelog.txt: "Added -z80v1 command line argument to always save 48K .Z80 snapshots as v1 files. Non-48K .Z80 snaps will always be v3. To toggle between v1 and v3 48K .Z80 snaps use the z80v1 and z80v3 commands in the debugger's command parser.").
-autoload
I don´t know if these too are supported via command-line:
/autoload /wait /waitframes /exit /quit /dump /debug /savesnap /trace /stoptrace /tracestop /stop

In SpecEmu.INI we can find:

Code: Select all

DebugFind_Visible=0
DebugFind_X=839
DebugFind_Y=124
DebugSourceRipper_Visible=0
DebugSourceRipper_X=426
DebugSourceRipper_Y=56
DebugRegisters_Visible=0
DebugRegisters_X=426
DebugRegisters_Y=55
DebugPlus3_Visible=0
DebugPlus3_X=426
DebugPlus3_Y=56
DebugIDE_Visible=0
DebugIDE_X=426
DebugIDE_Y=56
DebugMemory_Visible=0
DebugMemory_X=426
DebugMemory_Y=56
DebugPCHistory_Visible=0
DebugPCHistory_X=426
DebugPCHistory_Y=56
DebugBreakpoints_Visible=0
DebugBreakpoints_X=426
DebugBreakpoints_Y=56
DebugCommandParser_Visible=0
DebugCommandParser_X=426
DebugCommandParser_Y=56
DebuggerWin_X=414
DebuggerWin_Y=0
edjones
Drutt
Posts: 33
Joined: Fri Feb 28, 2020 1:42 pm

Re: SpecEmu: Command Parser reference?

Post by edjones »

The command parser has an "asm <opcode>" command if pasmo.exe is in Specemu's folder. It assembles to the address at the top of the disassembly window for quick patching of code.
edjones
Drutt
Posts: 33
Joined: Fri Feb 28, 2020 1:42 pm

Re: SpecEmu: Command Parser reference?

Post by edjones »

Luzie wrote: Sat Nov 26, 2022 11:34 am I don´t know if these too are supported via command-line:
/autoload /wait /waitframes /exit /quit /dump /debug /savesnap /trace /stoptrace /tracestop /stop
A good few of those also exist in the latest Zero emulator release so I guess they borrowed ideas of each other:

Code: Select all

--------------------
Command line options
--------------------

Zero can be fully configured via the command line by passing parameters in the following format:
zero [file][-option [value]]

The following options are available:
[snip]
Plays back commands in a queue. 		: -q
Available playback commands:
	/loadfile "filename": Loads a file given the path
	/waitframes N: Waits for N frames before processing next command
	/trace "filename": Starts a trace log to the given filename
	/stoptrace: Stops the above trace logging.
	/savesnap "filename": Saves the current emulation state as snapshot file.
	/debug: Opens the debugger.
	/exit: Exits the emulator :

Examples:
[snip]
3) Open a file, wait for 2 frames, start trace logging, wait for 5 frames, stop the logging and shutdown emulator
    zero.exe -q "exolon.pzx" /waitframes 2 /startrace "exolon_trace.log" /waitframes 5 /stoptrace /exit
User avatar
Luzie
Manic Miner
Posts: 913
Joined: Fri May 01, 2020 2:07 pm

Re: SpecEmu: Command Parser reference?

Post by Luzie »

@XoRRoX

From: viewtopic.php?p=105993#p105993
From Changelog.txt:
v3.2 build 04/12/22
-------------------

Improved snow effect emulation (thanks, Weiv)
Fixed "tapeinvert" command (in command parser) to invert bit 6 of IN #FE only with tape input (thanks, cngsoft)
Added a list of some of the debugger's command parser commands into the Docs folder
Added a few examples for the conditional breakpoints into the Docs folder
XoRRoX
Manic Miner
Posts: 233
Joined: Wed Jul 11, 2018 6:34 am

Re: SpecEmu: Command Parser reference?

Post by XoRRoX »

Thank you for letting me know, @Luzie :)
Post Reply