| |
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.... |
| |
markus sinalco Account closed
Registered: Sep 2005 Posts: 112 |
btw, is there any ".d64 Editor" for linux based systems ?. |
| |
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. |
| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
Quoting markus sinalcobtw, 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! |
| |
Hypnosis
Registered: Mar 2015 Posts: 36 |
Quote: btw, is there any ".d64 Editor" for linux based systems ?.
DirMaster works in Wine. |
| |
Compyx
Registered: Jan 2005 Posts: 631 |
Quote: Quoting markus sinalcobtw, 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? |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
Quoting CompyxPeople 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) |
| |
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 ;) |
| |
Perplex
Registered: Feb 2009 Posts: 255 |
Quoting CompyxI'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. |
| |
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 |
| |
Perplex
Registered: Feb 2009 Posts: 255 |
Quoting Groepazi 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 |