diff --git a/doc/notes.txt b/doc/notes.txt index b4c3e3f9..32efc55b 100644 --- a/doc/notes.txt +++ b/doc/notes.txt @@ -13,7 +13,6 @@ TODO: - asm: support macro expansion - multiple breakpoints, expression breakpoints - watchpoints -- MAME single step (?) - step over (line, instruction) - slowdown beam for all platforms? - show errors in list (maybe window list?) @@ -384,6 +383,9 @@ Emulator Lib - VCS - NES - MAME +- MAME + - debugging? + - kbd instructions don't work Markdown (showdown) interface - add code patches to files diff --git a/index.html b/index.html index 21e6869b..e1358f4f 100644 --- a/index.html +++ b/index.html @@ -377,6 +377,12 @@ if (window.location.host.endsWith('8bitworkshop.com')) { ←↑↓→ Joystick Z X C V Buttons + diff --git a/src/common/baseplatform.ts b/src/common/baseplatform.ts index b98d13a7..c80cabae 100644 --- a/src/common/baseplatform.ts +++ b/src/common/baseplatform.ts @@ -325,6 +325,12 @@ export abstract class BaseDebugPlatform extends BasePlatform { } }); } + runToPC(pc: number) { + this.debugTargetClock++; + this.runEval((c) => { + return c.PC == pc; + }); + } runUntilReturn() { var SP0 = this.getSP(); this.runEval( (c:CpuState) : boolean => {