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: 11386
<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: 722
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
Fred/Channel 4
algorithm
JEZ
rambo/Therapy/ Resou..
kbs/Pht/Lxt
Impetigo/Crescent
Krill/Plush
𝘁𝗡𝗚/FairLight
Guests online: 263
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

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