Watch for specific value being written to address in FUSE debugger
- PROSM
- Manic Miner
- Posts: 476
- Joined: Fri Nov 17, 2017 7:18 pm
- Location: Sunderland, England
- Contact:
Watch for specific value being written to address in FUSE debugger
I've been wrestling with the FUSE debugger, and I can't figure out how to make it watch for a specific value being written to an address in memory. I can get the breakpoint to trigger for any write to the address, but I only want execution to stop if this one value is written to memory. I haven't been able to work it out yet using the documentation - does anyone have any ideas?
All software to-date
Working on something, as always.
Working on something, as always.
Re: Watch for specific value being written to address in FUSE debugger
Code: Select all
br{eakpoint} (re{ad}|w{rite}) [address] [if condition]
Square brackets (`[' and `]') can be used to dereference a value; for example
`[0x4000]' will give the value of the first byte of the screen.
Code: Select all
break write 0x5c78 if [0x5c78] == 0x0035
Code: Select all
break write 0x5c78 if z80:HL == 0x0036
- PROSM
- Manic Miner
- Posts: 476
- Joined: Fri Nov 17, 2017 7:18 pm
- Location: Sunderland, England
- Contact:
Re: Watch for specific value being written to address in FUSE debugger
Thanks [mention]serbalgi[/mention]! This worked a treat
All software to-date
Working on something, as always.
Working on something, as always.