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 > VICE: attach disk image and run .prg file from OS filesystem
2016-05-30 20:20
Compyx

Registered: Jan 2005
Posts: 631
VICE: attach disk image and run .prg file from OS filesystem

With VICE (2.4.27 on Linux), I'm trying to figure out how to attach a D64 image to drive 8 (with TDE) while running a .prg file from my OS file system.

I've tried a wide variety of command line options, but I either get a message about extra arguments on the command line, or VICE tries to load the .prg file from the attached disk image, which obviously fails as well.

Does anyone know how to do this? I'm trying to keep my assemble-run-debug cycle as fast as possible.

/Compyx
2016-05-30 20:30
Burglar

Registered: Dec 2004
Posts: 1101
why not inject that prg into the d64 as well?
2016-05-30 20:40
Compyx

Registered: Jan 2005
Posts: 631
That was my next option. I think c1541 is fast enough for that. I was just curious why VICE doesn't seem to allow this. I've looked through all the command line options (thank fuck for `less`), but no luck so far.

I'm probably trying to do something backwards, as usual ;)
2016-05-30 21:04
iAN CooG

Registered: May 2002
Posts: 3193
Because when you're loading a prg from host filesystem Vice is already faking a virtual device 8 (prg will turn virtual device traps on and true drive emulation off), and you can't have both a virtual and "real" device 8 at the same time.
You can simply build your d64 with the needed files prior to launching vice.
2016-05-30 21:22
Compyx

Registered: Jan 2005
Posts: 631
I just did, and that works fine. Although VICE seems to have the `autostart-handle-tde` options backwards:
-autostart-handle-tde
        Handle True Drive Emulation on autostart
+autostart-handle-tde
        Do not handle True Drive Emulation on autostart


When I use `+autostart-handle-tde` VICE uses TDE to load my file, which takes quite a while for a 202 blocks file (even with warp). When I use `-autostart-handle-tde`, TDE is skipped and my file is loaded pretty much immediately.

Normally VICE uses +<option> to invert that option's behaviour, or am I slowly going insane? ;)
2016-05-30 21:34
Frantic

Registered: Mar 2003
Posts: 1648
the + - owls are not always what they seem
2016-05-30 21:50
Compyx

Registered: Jan 2005
Posts: 631
Indeed. Well, at least I got the stuff working the way I wanted.

Can't find any weird stuff in the VICE sources when it comes to handling those autostart settings after a quick glance. Seems to behave the way the docs state, just not when actually running VICE.
2016-05-30 21:58
markus sinalco
Account closed

Registered: Sep 2005
Posts: 112
btw, is there any ".d64 Editor" for linux based systems ?.
2016-05-30 22:24
Compyx

Registered: Jan 2005
Posts: 631
Not that I'm aware of.

I'm working on one, already got most of the backend working (C library that handles D64, D71, D81, T64, ARK, ZipCode and a few other images/containers). Just need to decide on a GUI toolkit for the frontend, I'm probably stuck with Gtk3 since Qt needs C++, and I really don't like C++.

You could always use c1541 which comes with VICE, but that's of limited use if you want to do BAM manipulation or dir art.
2016-05-31 04:44
Flavioweb

Registered: Nov 2011
Posts: 463
Quoting markus sinalco
btw, is there any ".d64 Editor" for linux based systems ?.

If you mean a tool to create .d64, CC1541 works as well:
http://csdb.dk/release/?id=69964&show=goof#goof
Take a look at the goofs!
2016-05-31 05:11
Hypnosis

Registered: Mar 2015
Posts: 36
Quote: btw, is there any ".d64 Editor" for linux based systems ?.

DirMaster works in Wine.
 
... 56 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 - 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
Unlock/Padua/Albion
Airwolf/F4CG
Case/Padua
Walt/Bonzai
iceout/Avatar/HF
Mike
DJ Gruby/TRiAD
Zorch
MWR/Visdom
cadaver/covertbitops
Didi/Laxity
Guests online: 140
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 Layers  (9.6)
2 No Listen  (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 Triad  (9.3)
5 Censor Design  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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