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 > Problems with Vice+ command playback
2008-11-23 13:18
Dragnet

Registered: Nov 2006
Posts: 16
Problems with Vice+ command playback

Hola!

This is a development question regarding Vice...

It is really tiresome to start up Vice, drag'n'drop a program to it, enter the monitor, then go the correct dir to load Vice label files, enter breakpoints, if any, and THEN start debugging.

So, I'm using Vice's playback option, storing the commands in a file, but I cannot seem to get it to load label files via commands. Anybody know how to solve this?

Here's what I do: the following command file, "foo.vice", is stored in the same directory as Vice+ is installed in, and all relevant files in C:\c64\foo:

cd \
cd c64
cd foo
load "foo.prg" 0

load_labels "foo.vs"
load_labels "foo1.vs"

Then, I start Vice+, enter Alt+M, and type:

pb "foo.vice"

- and everything works fine except the loading of the labels - I get no errors! I have also tried using ll instead, but same result...

Thanks & regards
Dragnet
2008-11-23 13:58
chatGPZ

Registered: Dec 2001
Posts: 11119
<nojoopa> IIRC the label files are just "al" commands that are run through the same function as the command file is, which I guess is why it breaks. A solution is to include the labels in the command file itself.

it seems to be a bug :)
2008-11-23 16:01
Martin Piper

Registered: Nov 2007
Posts: 634
Yup, it is a bug and is one of the reasons I added automatic symbol loading from the prg filename. :)
2008-11-23 18:41
doynax
Account closed

Registered: Oct 2004
Posts: 212
Quote: Hola!

This is a development question regarding Vice...

It is really tiresome to start up Vice, drag'n'drop a program to it, enter the monitor, then go the correct dir to load Vice label files, enter breakpoints, if any, and THEN start debugging.

So, I'm using Vice's playback option, storing the commands in a file, but I cannot seem to get it to load label files via commands. Anybody know how to solve this?

Here's what I do: the following command file, "foo.vice", is stored in the same directory as Vice+ is installed in, and all relevant files in C:\c64\foo:

cd \
cd c64
cd foo
load "foo.prg" 0

load_labels "foo.vs"
load_labels "foo1.vs"

Then, I start Vice+, enter Alt+M, and type:

pb "foo.vice"

- and everything works fine except the loading of the labels - I get no errors! I have also tried using ll instead, but same result...

Thanks & regards
Dragnet


Personally I start VICE with the executable specified on the command line, along with the -moncommands flag to automatically load a label list (plus breakpoints and whatever else you feel like stuffing into it.)
This avoids the need for recursive command files, though you can always cobble them together manually with command line tools or macro processors if necessary, and seems to work nicely enough. That is assuming you've got a batch file or editor hot-key set up for building the program and starting things off anyway.

What really needs to be automated next in VICE is the recording of replays, thereby making virtually all bugs trivially reproducible.
2008-11-23 19:08
Dragnet

Registered: Nov 2006
Posts: 16
Hola & thanks for the replies!

For me, it is not really an option to put in the labels directly in the pb file, since the label file is generated by KickAssembler (well - could hack Slammer's code of cause, that's always fun - but better not...! :) )

Seems like Doynax's proposal with the -moncommands option is the way to go - will give it a go...

I'm really amazed on the fast response people get in these forums and on this site in general - had also forgotten how much fun the C64 is, but now it's all coming back... It's so much fun to be coding on the C64 again! :)

Cheers /Dragnet
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
icon/The Silents, Sp..
CA$H/TRiAD
A3/AFL
Unkle K/Reset Magazi..
Andy/AEG
Black Beard
McMeatLoaf
Guests online: 142
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 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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 Musicians
1 Vincenzo  (9.8)
2 Rob Hubbard  (9.7)
3 Stinsen  (9.7)
4 Jeroen Tel  (9.6)
5 Linus  (9.6)

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