It is currently Sat Oct 21, 2017 8:49 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jul 09, 2017 7:29 am 
Offline
User avatar

Joined: Sun Jun 11, 2017 5:39 pm
Posts: 39
I have 2 things for which I have problems with FCEUX

1-) When I put a breakpoint on the reading of a value, I would like the debugger not to stop if this is a specific adress.
For example, I search where $0300 is read. However, for like 3 places, I know and I don't want the debugger to stop on those 3 places. The thing is that there may be other time it's read during gameplay, but since it's stopping at those 3 places every cycle, I cannot play while having the breakpoint.
Having a condition is not gonna work in this case, value isn't changed.

2-) How to you write the conditions in the debugger?


Top
 Profile  
 
PostPosted: Sun Jul 09, 2017 7:57 am 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2963
Location: Tampere, Finland
Add a condition to check that the value of PC is not one of the undesired values:

Code:
(P != #1234) && (P != #FACE) && (P != #BEEF)

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Top
 Profile  
 
PostPosted: Sun Jul 09, 2017 7:59 am 
Offline

Joined: Tue Feb 07, 2017 2:03 am
Posts: 248
you can add "forbid" breakpoints, which means it won't break when you hit the memory location they are assigned to.

Not sure on the conditions sorry


Top
 Profile  
 
PostPosted: Sun Jul 09, 2017 8:12 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1780
Location: DIGDUG
Multi-step...
-first go through a frame with reads for $300.
-every time it's at a place you want, add a breakpoint for execution at that address
-at the end, remove the breakpoint for reads on $300

You can also add a dummy bit of code just before the spot you want to break, and add breakpoints for writes to that...
INC $ff
(Where $ff is unused)

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Sun Jul 09, 2017 8:41 am 
Offline
User avatar

Joined: Sun Jun 11, 2017 5:39 pm
Posts: 39
thefox wrote:
Add a condition to check that the value of PC is not one of the undesired values:

Code:
(P != #1234) && (P != #FACE) && (P != #BEEF)


Thanks so useful!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Bing [Bot], DragonDePlatino and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group