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:
+8
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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()');
|
||||
|
||||
Reference in New Issue
Block a user