| |
xlar54 Account closed
Registered: Dec 2018 Posts: 9 |
BRK and the stack
Hey folks, Im trying to track down a bug and at this point I need to know where in the program a BRK occurred. This image:
https://imgur.com/d1Insv5
contains the stack as seen by VICE. The SP is EE. I reset the break vector to an area where im just JMPing in a loop so i can look at this, so not much else should be disturbed.
Can someone help me understand this data and where the PC was when the brk occurred? |
|
| |
Mixer
Registered: Apr 2008 Posts: 452 |
Perhaps this description can help http://unusedino.de/ec64/technical/aay/c64/bbrk.htm |
| |
Knight Rider
Registered: Mar 2005 Posts: 131 |
what about watch 0316 |
| |
oziphantom
Registered: Oct 2014 Posts: 490 |
chis 50
the 30 is the status flags push. so my guess is $1762 is the brk |
| |
xlar54 Account closed
Registered: Dec 2018 Posts: 9 |
Quote: chis 50
the 30 is the status flags push. so my guess is $1762 is the brk
That was it, thanks. (actually that value -2). |
| |
oziphantom
Registered: Oct 2014 Posts: 490 |
so it has 1764, and the actual break address was 1760? |
| |
Style
Registered: Jun 2004 Posts: 498 |
Im with Oziphantom here, that makes no sense. BRK is implied, so PC + 2 should be pushed. |