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 > DTV coding using VicePlus and KickAssembler
2007-11-01 15:05
Shadow
Account closed

Registered: Apr 2002
Posts: 355
DTV coding using VicePlus and KickAssembler

I'm doing my DTV-development in KickAssembler and testing in VicePlus (sure saves a lot of time not having to transfer to the DTV every time).
However, there's still the issue with getting data in the >64k memory areas. As it is now, I have to generate a piece of code that fits in the low 64k, and then unpacks/moves it to higher mem. It's a bit of a pain, since for example to get 256k data, you have to split into 5 pieces and load each separately in the emulator, run the code that moves it to the right place, repeat etc.
I'm thinking that it could be possible to add support for a new .PRG format, but with 32-bit load address instead?

Even better would then be if KickAssembler had support for assembling to this new format, then I could do stuff like:

.pc=$40000
.pseudopc=$4000
(put code that is runtime segmapped to $4000 here)
..

and then assemble all that to one big nice DTVPRG-file and test in emulator.

Or is there a clever way to accomplish something similar with existing versions of VicePlus and KickAssembler?
2007-11-01 16:16
tlr

Registered: Sep 2003
Posts: 1790
The current viceplus development version supports long loads in the monitor (i.e >64Kb).

It also has virtual device traps for the flash file system (which can load large files in the stock DTV).

A ".prg" format could be useful. I had an idea of a simple chunk based "prg" format for dtvtrans. Never got around to it.
It would allow several memory segments, arbitrarily large.
2007-11-01 16:30
Shadow
Account closed

Registered: Apr 2002
Posts: 355
How does a DTVTrans file look now exactly (I don't have any DTVTrans equipment, so I've never looked into it)? Is it just pure binary, and then you specify the load address when you run DTVTrans?

2007-11-01 16:37
tlr

Registered: Sep 2003
Posts: 1790
dtvtrans accepts .prg's or raw .bin's.
For bin's a target address can be specified on the command line.
I don't remember if you can relocate .prg's too, but if you can't you can at least load it as .bin, 2 bytes lower.
2007-11-01 20:41
Slammer

Registered: Feb 2004
Posts: 416
So what is the max memory address for DTV?
2007-11-01 20:49
tlr

Registered: Sep 2003
Posts: 1790
For the DTV ASIC $3fffff. Only $000000-$1fffff is physical memory though.
The CPU can only execute from the low 64Kb which can be mapped in four 16Kb blocks to any 16Kb blocks of the physical memory.
i.e addresses >64Kb is only useful in conjunction with .pseudopc.
2008-02-26 22:15
Shadow
Account closed

Registered: Apr 2002
Posts: 355
I think I have found a way to do this now (in the offhand chance that someone should be interested) - using the snapshots of VicePlus!
I assemble the parts separately, and then I programmed a little utility to put these files together to a .vsf of the whole memory. Now I'm able to do quick testing in Vice+. Seems to work just fine!
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
iAN CooG/HVSC
Sulevi/Virtual Dreams
t0m3000/hf^boom!^ibx
tlr
iceout/Avatar/HF
Alakran_64
Peacemaker/CENSOR/Hi..
The Syndrom/TIA/Pret..
MWR/Visdom
Mike
wil
Acidchild/Padua
Darkflight
tokra/Akronyme Analo..
Guests online: 123
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 Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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