Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user ibux ! (Registered 2020-09-25) You are not logged in 
CSDb User Forums


Forums > C64 Coding > BRK and the stack
2019-06-29 23:52
xlar54

Registered: Dec 2018
Posts: 6
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?
2019-06-30 00:10
Mixer

Registered: Apr 2008
Posts: 330
Perhaps this description can help http://unusedino.de/ec64/technical/aay/c64/bbrk.htm
2019-06-30 06:37
Knight Rider

Registered: Mar 2005
Posts: 63
what about watch 0316
2019-06-30 07:30
oziphantom

Registered: Oct 2014
Posts: 409
chis 50

the 30 is the status flags push. so my guess is $1762 is the brk
2019-06-30 15:55
xlar54

Registered: Dec 2018
Posts: 6
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).
2019-07-01 17:32
oziphantom

Registered: Oct 2014
Posts: 409
so it has 1764, and the actual break address was 1760?
2019-07-02 04:07
Style

Registered: Jun 2004
Posts: 496
Im with Oziphantom here, that makes no sense. BRK is implied, so PC + 2 should be pushed.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Dex-D/Airsomjith Class
Hawk
grass/LETHARGY
The Sarge/Fairlight
Matt
wil
Mch/G★P
cba
Scooby/G★P/Light
Visage/Lethargy
Zorch
Ghost/Excess
Guests online: 115
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.6)
3 Coma Light 13  (9.6)
4 Memento Mori  (9.6)
5 Comaland 100%  (9.6)
6 The Shores of Reflec..  (9.6)
7 Unboxed  (9.6)
8 Lunatico  (9.6)
9 Remains  (9.5)
10 C=Bit 18  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.5)
2 Gumbo Revised  (9.5)
3 Smile to the Sky  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Bad Boy  (9.5)
6 Crystal Gazer  (9.5)
7 Cuarentenauta  (9.5)
8 Instinct  (9.5)
9 The Tuneful Eight [u..  (9.5)
10 The Night It Snowed  (9.5)
Top Groups
1 PriorArt  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Fossil  (9.4)
5 Performers  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Horizon  (9.9)
3 Stormbringer  (9.7)
4 The Shadow  (9.6)
5 Fungus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2020
Page generated in: 0.034 sec.