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-06-02 17:41
chatGPZ

Registered: Dec 2001
Posts: 11386
yay, missed this. thx :)
2016-06-02 18:37
Compyx

Registered: Jan 2005
Posts: 631
Quote: simple crossdev packer? cld by tlr
cbmtools 0.6


I'll assume you're talking about pucrunch.

Personally I've found that simply injecting a 202 blocks file into VICE (or a d64 image) is a lot quicker than whatever crucher/decruncher solution. Even RLE doesn't beat loading the full data while skipping TDE.
2016-06-02 18:58
chatGPZ

Registered: Dec 2001
Posts: 11386
as long as 202 blocks works, sure - however in demo you often want to use d000-ffff too, and then the problem starts :)
2016-06-03 09:18
Compyx

Registered: Jan 2005
Posts: 631
Well, I'll handle that when I need to. Already have something planned that's going to need the full 64K stuffed with data, so it might be sooner rather than later.

In the old days I would simply code in the ML monitor of my cartridge when I needed all the memory, which is something I'm going to avoid at all cost ;)
2016-06-03 09:40
Krill

Registered: Apr 2002
Posts: 2980
Quoting Compyx
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 ;)
Granted, it's not pretty. Just a tool quickly hacked together to do its job. And at some point it will read and write that 50x fastload format i have yet to actually turn into working code. :)

But back on topic: Wouldn't it be possible to pipe commands and files into a running VICE instance, such as a reset-load-run combination? For me, VICE startup times themselves feel pretty long already, no matter if auto-running a program or not.
2016-06-03 10:07
Compyx

Registered: Jan 2005
Posts: 631
I think the remote monitor feature of VICE could be useful, I haven't looked into that yet. If I could inject the new code and data into a running VICE instance from VIM (:make x64) that would seriously cut down on start-up time.

The assembler I use is very fast (64tass), c1541 is also pretty quick, starting VICE is the biggest bottleneck.

Guess I'll have to grep my way through the gazillion command line options x64 has ;)
2016-06-03 10:15
iAN CooG

Registered: May 2002
Posts: 3193
long time on startup is mostly taken by the ram test at $fd50. use a cart like TFR or patch your kernal rom like this (fc /b output)
00001D60: 3C 00
00001D69: 03 9F
2016-06-03 10:38
Compyx

Registered: Jan 2005
Posts: 631
Quote: long time on startup is mostly taken by the ram test at $fd50. use a cart like TFR or patch your kernal rom like this (fc /b output)
00001D60: 3C 00
00001D69: 03 9F


Please forgive my ignorance, but what is TFR, my guess would be something like 'the final replay'?
2016-06-03 10:51
iAN CooG

Registered: May 2002
Posts: 3193
exactly that
2016-06-03 10:55
Compyx

Registered: Jan 2005
Posts: 631
Yup, a google search had already answered my own question ;)
I will check it out after I come back from work.

I also managed to get the remote monitor working, with telnet I can inject data into memory, attach disk images, and much more.

Some serious hacking for a simple graphics editor :)
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
Martinland
Walt/Bonzai
St0rmfr0nt/Quantum
Trap/Bonzai
Mike
Fresh
iAN CooG/HVSC
HOL2001/Quantum
TheRyk/MYD!
Airwolf/F4CG
REBEL 1/HF
t0m3000/hf^boom!^ibx
saimo/RETREAM
Alakran_64
Chesser/Blazon
MWR/Visdom
WVL/Xenon
Guests online: 122
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.051 sec.