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
 
... 56 posts hidden. Click here to view all posts....
 
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.
2016-05-31 07:23
Compyx

Registered: Jan 2005
Posts: 631
Quote: 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!


People actually use that?
2016-05-31 07:30
Krill

Registered: Apr 2002
Posts: 2980
Quoting Compyx
People actually use that?
Obviously. And why shouldn't they? It creates disk images optimised for demos, while C1541 emulates the KERNAL save behaviour, which is not suited so well for demos. And yes, similar tools exist, and everyone who can rolled their own. But still... (My loader comes with its own incarnation of CC1541, Jackasser and i are still bickering over the details of the merge settlement. Well, not really :D)
2016-05-31 10:04
Compyx

Registered: Jan 2005
Posts: 631
That, I understand, fastloaders need a different sector interleave and such. I guess I was a bit surprised by the code itself, such as calling strlen() in a loop and an uncomfortable mix of C and C++.

I'm pedantic, I know ;)
2016-05-31 13:01
Perplex

Registered: Feb 2009
Posts: 255
Quoting Compyx
I'm trying to keep my assemble-run-debug cycle as fast as possible.


I can recommend the use of snapshot files combined with the remote monitor. As the final steps in your build pipeline, inject the updated code and/or data into the snapshot (very straightforward to do), then send commands to the remote monitor of the running emulator to reload the snapshot and jump to the start of your code:
 echo 'undump "snapshot.vsf"' | nc localhost 6510
 echo 'load_labels "labels.txt"' | nc localhost 6510
 echo 'goto .Start' | nc localhost 6510

I don't think it's possible to detach/reattach a disk image using the monitor though, so if you need to do that you must do it manually in the emulator or make your build system kill and restart the emulator when necessary.
2016-05-31 14:07
chatGPZ

Registered: Dec 2001
Posts: 11386
i dont recommend using snapshots for development - as the whole snapshot thing is highly complex and almost impossible to test properly, you'll get unexpected results sooner or later....

and yes, attaching a disk in monitor is possible:

$ attach disk.d64 8
2016-05-31 15:00
Perplex

Registered: Feb 2009
Posts: 255
Quoting Groepaz
i dont recommend using snapshots for development - as the whole snapshot thing is highly complex and almost impossible to test properly, you'll get unexpected results sooner or later....

Build by copying then modifying a known working base snapshot image, and you should be fine. Works well for me, at least.

Quoting Groepaz

and yes, attaching a disk in monitor is possible:

$ attach disk.d64 8

Duh, I must have been looking at the documentation for an old version, didn't notice that. Thanks!
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
Mike
hedning/G★P
MWR/Visdom
LightSide
t0m3000/hf^boom!^ibx
Trap/Bonzai
4gentE/ΤRIΛD
Perplex/Offence
Walt/Bonzai
REBEL 1/HF
Mibri/ATL^MSL^PRX
Inge/HVSC
Stratford/Xenon
lA-sTYLe/Quantum
sln.pixelrat
Guests online: 125
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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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