feat: Use Mesen-X specific commands. Thanks @AlchemicRaker !
This commit is contained in:
parent
0d762fca03
commit
8a9977219f
2 changed files with 6 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
# mesen-binary-monitor
|
# mesen-binary-monitor
|
||||||
|
|
||||||
This is a monitor for Mesen, intended to mimic [VICE's binary monitor](https://vice-emu.sourceforge.io/vice_13.html).
|
This is a monitor for Mesen-X, intended to mimic [VICE's binary monitor](https://vice-emu.sourceforge.io/vice_13.html).
|
||||||
It is currently in an alpha state, and some commands are not functional or behave
|
It is currently in an alpha state, and some commands are not functional or behave
|
||||||
incorrectly. I originally wrote this to support debugging in my [VS65 Debugger](https://github.com/empathicqubit/vscode-cc65-vice-debug).
|
incorrectly. I originally wrote this to support debugging in my [VS65 Debugger](https://github.com/empathicqubit/vscode-cc65-vice-debug).
|
||||||
To use it, make sure your script timeout is set as high as possible (2147483647)
|
To use it, make sure your script timeout is set as high as possible (2147483647)
|
||||||
and start up Mesen as such:
|
and start up Mesen-X as such:
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
|
|
||||||
|
|
|
@ -175,8 +175,9 @@ return function(server)
|
||||||
|
|
||||||
server.stepping = true
|
server.stepping = true
|
||||||
if stepOverSubroutines then
|
if stepOverSubroutines then
|
||||||
-- FIXME
|
for i=1,count do
|
||||||
emu.execute(count, emu.executeCountType.cpuInstructions)
|
emu.stepOver()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
emu.execute(count, emu.executeCountType.cpuInstructions)
|
emu.execute(count, emu.executeCountType.cpuInstructions)
|
||||||
end
|
end
|
||||||
|
@ -192,7 +193,7 @@ return function(server)
|
||||||
local function processExecuteUntilReturn(command)
|
local function processExecuteUntilReturn(command)
|
||||||
-- FIXME
|
-- FIXME
|
||||||
server.stepping = true
|
server.stepping = true
|
||||||
emu.execute(1, emu.executeCountType.cpuInstructions)
|
emu.stepOut()
|
||||||
|
|
||||||
server.running = true
|
server.running = true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue