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 > De-Exomize directly to color RAM?
2014-11-20 20:23
TSM

Registered: Jan 2007
Posts: 42
De-Exomize directly to color RAM?

1) Can I achieve this with the 'sfx' command?
2) Can I do it with the 'mem' command and the decruncher sources included in my project?
3) Is it impossible, i.e. am I forced to decrunch the data somewhere else and copy it to color RAM afterwards?
 
... 7 posts hidden. Click here to view all posts....
 
2014-11-20 21:25
Mr. SID

Registered: Jan 2003
Posts: 421
What you're describing is pretty much exactly what I do in Donkey Kong Junior.
2014-11-20 22:21
j0x

Registered: Mar 2004
Posts: 215
Isn't this risky? Assume you want to fill $d800-$e100 with $01. Exomizer (I'm assuming it's decompressing forward) will probably write $01 into $d800 and then make a copy of length $8ff. However, the value read from $d800 (and onward) and copied may be $f1, not $01, which will corrupt your bitmap data.

If the decompression happens backwards, the same applies, except your screen data may get corrupted because of the high bits of $d800.
2014-11-20 23:02
Mixer

Registered: Apr 2008
Posts: 422
Cat loses its skin a few times. Risk is when there are unknowns.
2014-11-21 02:08
TSM

Registered: Jan 2007
Posts: 42
I tried method #3, which I'm happy with, but the unpacker's code overwrites some data that I need in the area $02A7 - $03FB (a tape loader).
I guess there's no way to move the unpacker somewhere else without compiling it myself, right?
2014-11-21 07:58
spider-j

Registered: Oct 2004
Posts: 444
If you're not sure how to use exomizer source I made a really easy readme/howto with example files for acme a couple of years ago (the file link in the first post):
http://www.forum64.de/wbb3/board25-coder-unter-sich/board308-pr..
(while it's a german forum the actual howto is in english)
2014-11-21 09:14
ruk

Registered: Jan 2012
Posts: 43
As long as you don't load your data in I/O-space you should be fine. E.g if having load-address set to $d804 the crunched data's upper nibbles will be garbled. Decrunching to $d800 from somewhere else should be OK though methinks but it will be glitchy as Algorithm said, if not using hires bitmap mode or disabled display.

Use -Di_table_addr=<address> to specify where exomizer can store its decrunch table. Defaults to tape buffer area. Size is 156bytes.
2014-11-21 14:39
Mr. SID

Registered: Jan 2003
Posts: 421
Of course the screen has to be disabled when running the exomizer decrunch.
2014-11-21 14:47
chatGPZ

Registered: Dec 2001
Posts: 11108
why? just setup $01 correctly?
2014-11-21 15:53
TSM

Registered: Jan 2007
Posts: 42
Even though the lowest address used by my data is $C000, the decruncher zero-fills the memory all the way up to $0801 (or so)! This prevents me from moving the decrunch table to $1000 or whatever. It's also annoying because it takes time. Can the zero-filling be disabled?

Thank you.

PS:

Here's my data

programma.prg ($C000 - $C080)
immagine.scr ($D000 - $D3E7)
immagine.bmp ($E000 - $FF3F)
immagine.col ($D800 - $DBE7)

Edit: immagine.col is actually $1800 - $1BE7, then my program moves it to $D800. Perhaps I was wrong and the zero-fill doesn't occur. I'm looking into it.
2014-11-21 18:10
TSM

Registered: Jan 2007
Posts: 42
Solved!
I put the .col file at $9800 and the decrunch table at $1000. The speed has increased as well.
Thank you all!
Previous - 1 | 2 - 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
megasoftargentina
MCM/ONSLAUGHT
St0rmfr0nt/Quantum
QuasaR/CENTRiC
kbs/Pht/Lxt
Didi/Laxity
Avalanche/Atlantis
Guests online: 148
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

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