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

Feature request: Breakpoint with mask

Open spannerisms opened this issue 5 years ago • 2 comments

Something where you can set a mask for breakpoints before performing (in)equality operations would be nice.

One such use that I've run into wanting this for was finding sound effects in A Link to the Past, where there are $40 sound effects, but the sound effect queue address is masked with $3F to determine which sound to make. The top 2 bits are used for determining pan.

I'm sure this would be incredibly useful for bitfields where you want to watch more than 1 bit as well.

spannerisms avatar Oct 29 '19 10:10 spannerisms

So, you are asking for bitwise operators to be added to the existing breakpoint comparison operators?

qwertymodo avatar Dec 17 '19 15:12 qwertymodo

I feel like having both a mask and a comparator would kind of clutter the breakpoint editor too much, but I might do something like add "&" and "!&" operators that would test if (data & value) is zero or not zero, hopefully that'd be useful enough...

devinacker avatar Dec 17 '19 21:12 devinacker