bsnes-plus
bsnes-plus copied to clipboard
Feature request: Breakpoint with mask
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.
So, you are asking for bitwise operators to be added to the existing breakpoint comparison operators?
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...