Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Break Vice at certain opcode
2024-03-11 10:23
Gordian

Registered: May 2022
Posts: 35
Break Vice at certain opcode

Hello,
is there any possibility to create condition for breaking Vice monitor at certain opcode?
 
... 38 posts hidden. Click here to view all posts....
 
2024-03-19 10:54
wacek

Registered: Nov 2007
Posts: 501
AFAIR it has more advanced ways for breaking (it actually might have breaking as Gordian wanted originally, didn't check), but there is also not so much need for breaking when you can go cycle by cycle, command by command or rasterline by rasterline + rewind ;) it really does best what is in the name - help debug. I have traced strange things with it many times. Especially if you are very much still in the learning phase like myself, it helps a lot.
Once I remembered placing label in a wrong place and accidentally setting decimal mode for example ;) yeah, RD rulez.
2024-03-19 12:41
chatGPZ

Registered: Dec 2001
Posts: 11135
Uh. So you don't know, and what you suggest doesn't solve the original request either. OK >_<

It is VICE, as said. And those more advanced conditions were only added recently.
2024-03-19 13:08
wacek

Registered: Nov 2007
Posts: 501
Quoting chatGPZ
Uh. So you don't know, and what you suggest doesn't solve the original request either. OK >_<


You confused AFAIK with AFAIR, LOL. And my comment was on general usability of RD for debugging, hence "such things", not "this thing". It was a general advice to use RD for debugging, and wondering that precise solution MIGHT be there.

I checked, and it's not there, the possibilities are:

1. VIC / CIA / NMI - stops when selected interruption occurs
2. CPU PC - the code will stop as the processor will start to perform instruction from selected address
3. MEMORY - stops when there will be attempt to write to the memory of the set value, for example: 4FFF <= 3F will stop code when there will be attempt to write to the cells 4FFF value less or equal to 3F. To break at any write access you can use <= FF
4. RASTER - stops when raster reaches the set line value.

According to Vice manual, it has 2 & 3 - correct?
2024-03-19 13:10
chatGPZ

Registered: Dec 2001
Posts: 11135
VICE monitor can do all of that, of course. And more :) You'll have to understand and use the breakpoint conditions.
2024-03-19 19:50
wacek

Registered: Nov 2007
Posts: 501
Yeah sure, some things easily done in RD can be also done in a complicated way in vice monitor ;) no idea why sane people would choose that route, but hey dude, whatever rocks your boat...
2024-03-19 20:14
chatGPZ

Registered: Dec 2001
Posts: 11135
It's really not that complicated if you know what you are doing. And if you do, it can do much much more than just those few things that the Retro Debugger frontend makes a little bit easier to do. I'd rather have up to date emulation and features, but whatever rocks your boat, indeed :)
2024-03-20 06:44
Gordian

Registered: May 2022
Posts: 35
Quote: Gordian, I assume you do not use RetroDebugger for such things? :)

Wacek,
the most used and my favorite tool is INC/DEC$D020/21 "debugger", but in this case VICE worked better;)
Now when I know how to debug in such situations, it can be done easily, quickly and efficiently.
2024-03-20 11:21
wacek

Registered: Nov 2007
Posts: 501
Quoting chatGPZ
It's really not that complicated if you know what you are doing.

Please show me the rewinding or mem usage dumps done in Vice.
Bashing other tools that are obviously done to serve the community and should be appreciated in the same way your work with Vice is appreciated, is just damn childish, don't you think?
RD is a great tool and admitting that does not take anything away from Vice, sheesh.
2024-03-20 11:22
wacek

Registered: Nov 2007
Posts: 501
Quoting Gordian
Wacek,the most used and my favorite tool is INC/DEC$D020/21

Same here. But believe me, for serious debugging, you should give RD a try ;)
2024-03-20 11:25
wacek

Registered: Nov 2007
Posts: 501
Quoting chatGPZ
It's really not that complicated if you know what you are doing.

Well, I know you love to patronize, but I do know what I'm doing with Vice, thanks.
Quote:
I'd rather have up to date emulation and features

Thinking that THIS and using RD is mutually exclusive is retarded.
Previous - 1 | 2 | 3 | 4 | 5 - Next
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
Jammer
zscs
Exile/Anubis
BOMB/ACRISE
Matt
Viti/Hokuto Force
skull
Jetboy/Elysium
Guests online: 93
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.049 sec.