View previous topic :: View next topic |
Author |
Message |
xerdor How do I cheat?
Reputation: 0
Joined: 27 Aug 2020 Posts: 2
|
Posted: Thu Aug 27, 2020 9:18 am Post subject: Creating multiple on write breakpoints |
|
|
Hi,
I have a list of addresses (about 50) that I want to monitor for write access. The documentation says that the fourth argument (0) should set the method to software:
Code: | debug_setBreakpoint(f.getAddress(i), 1, bptWrite, 0, logId) |
However it's set to hardware which seems to be limited to 4 breakpoints.
I get software breakpoints with
Code: | debug_setBreakpoint(f.getAddress(i)) |
but then it's set to execute, not write.
Is there any way to get these breakpoints? Or am I trying to monitor these writes in the wrong way anyway?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Thu Aug 27, 2020 9:43 am Post subject: |
|
|
try breakpointmethod 2 (exception)
but it's better to find the code that writes to those instructiond and then break on those code addresses with an execute bp, and on breakpoint check if the accessed address is in the list
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
xerdor How do I cheat?
Reputation: 0
Joined: 27 Aug 2020 Posts: 2
|
Posted: Thu Aug 27, 2020 2:15 pm Post subject: |
|
|
I tried the exception method but the game crashed when adding BPs to certain addresses. One of those addresses is from a module and easy to filter out, but I couldn't figure out what was special about the other addresses.
But the execute breakpoint works great, I don't even have to scan for all the addresses since the code address doesn't change at all.
Way more straightforward than I thought, code just sounded more complicated than data.
Thanks for the help!
|
|
Back to top |
|
 |
|