FCEUX breakpoints

From NESdev Wiki
Revision as of 18:29, 16 March 2011 by Tepples (talk | contribs) (clueless figured it out)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Once upon a time, an NES programmer was trying to determine where in the code a screwed up value was being written to a specific memory location. Specifically, when the value $EE was being written to location $0028. To figure out what can be put into the "condition" text input field in the breakpoint dialog box, he dug into the source code for FCEUX and found the parser, whose grammar is listed near the top of the source file.

After the programmer had been staring at the problem for too long, a fox came and helped him.

  1. Address: 28
  2. Click "Write"
  3. Memory: CPU (the default)
  4. Condition: R = #ee if you don't know what CPU register is used for the write or X = #ee if you know it's X. The # is important; leaving it out will screw it up.

References