bsnes-plus icon indicating copy to clipboard operation
bsnes-plus copied to clipboard

Numbered breakpoints with WDM

Open georgjz opened this issue 6 years ago • 1 comments

This is an enhancement idea: since the WDM opcode reads the byte after it, might it be possible to add an option to the Breakpoint Editor where the emulation only stops at

wdm
.byte $xx

where $xx is an arbitrary number? So that I could stop at all instances of WDM or just at a range of numbers of $xx.

I am aware some use NOP/WDM to skip the byte-long instruction after it, but this might be a nice feature when working on large projects.

georgjz avatar Jul 27 '18 19:07 georgjz

This could probably be done in the same way that normal breakpoints let you specify an optional 'data' value to compare against (possibly combined with the selectable operators idea in #133 for >, <, >=, <=, !=, etc.)

I guess it'd just be a matter of adding the option to the GUI comfortably. I'm going to start on an effort fairly soon to start integrating some big debugging GUI changes including to the breakpoint editor, so those two features would probably be good things to try to implement at that point.

devinacker avatar Aug 24 '18 15:08 devinacker