1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-19 08:27:40 +00:00

MAME multiple breakpoints (still buggy)

This commit is contained in:
Fred Sauer
2026-02-22 10:15:28 -08:00
parent d5a3e6aa64
commit 317e329154
2 changed files with 9 additions and 5 deletions
+8 -2
View File
@@ -39,8 +39,14 @@ function mamedbg.continue()
debugger:command("g")
end
function mamedbg.runTo(addr)
debugger:command(string.format("g %x", addr))
function mamedbg.runTo(...)
local addrs = {...}
local addrStrs = {}
for _, addr in ipairs(addrs) do
table.insert(addrStrs, string.format("0x%04x", addr))
debugger:command(string.format("bpset %x", addr))
end
debugger:command("g")
mamedbg.start()
end
+1 -3
View File
@@ -288,9 +288,7 @@ export abstract class BaseMAMEPlatform {
this._resume();
}
runToPC(pc: number[]) {
// TODO: Support for multiple breakpoints
const targetPC = pc[0];
this.debugcmd('mamedbg.runTo(' + targetPC + ')');
this.debugcmd('mamedbg.runTo(' + pc.join(',') + ')');
}
runToVsync() {
this.debugcmd('mamedbg.runToVsync()');