Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user eightbitswide ! (Registered 2024-12-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > DE00-DFFF
2004-05-09 02:44
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
DE00-DFFF

I read just about everything I could find about this memory area, but I remembered something, perhaps from a chat on IRC or something..

This mem area contains the program-counter, the last accessed line nr, cycle-counter, well - just about everything the machine does.

Is this true ?

Who knows anything ?

I can dig that any expansions put into the machine must have some input data, so naturally there has to be some important info in this memblock - but which ones exactly ?

I also read that it don't nessecarily behave the same way on every C64.

So ?

Help!!


I am also looking for a way to read the read-only registers of the SID.

My friend Kaze/TST did it once, but that program is lost forever, and he didn't code since 1988 on C64. damn.

The program was running a modified KERNAL, and it enabled us to write the music while playing, out to disk as a D400+ dump - but it was way to slow and the disk just got filled up very fast.

But it worked!


 
... 23 posts hidden. Click here to view all posts....
 
2004-05-21 10:28
Vai

Registered: Mar 2002
Posts: 50
The Music rastertime cruncher wasn't supposed to crunch the music data but the amount of rasterlines used by the player.

Yeah, I know ... stupid tool I've made :)
2004-05-21 11:17
Clarence

Registered: Mar 2004
Posts: 121
Quote: The Music rastertime cruncher wasn't supposed to crunch the music data but the amount of rasterlines used by the player.

Yeah, I know ... stupid tool I've made :)


I like your tool, but It could have been a bit improved. It uses too short dumps, and fe. doesn't detect simple things like if a register has a constant value for hte whole excerpt etc. So I had to do a routine of my own.
2004-05-21 14:05
JackAsser

Registered: Jun 2002
Posts: 2014
Not that I know how the SID-chip works, but isn't there a chance that some registers only reacts to the actual write, not the value, like for instance reseting something. For example a write to register X causes something special despite the actual value. This would mean that by removing duplicate writes with the same value actually causes error in the playback.

Any comments?
2004-05-22 00:52
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
You are absolutely right!
2004-05-22 00:57
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
I should have explained..

if you write something to an OSC and it does something,
after a few lines it may be started again (f.ex multispeed tunes), so all writes in 1 frame has to be grabbed
2004-05-28 22:31
Frantic

Registered: Mar 2003
Posts: 1648
Quote: Not that I know how the SID-chip works, but isn't there a chance that some registers only reacts to the actual write, not the value, like for instance reseting something. For example a write to register X causes something special despite the actual value. This would mean that by removing duplicate writes with the same value actually causes error in the playback.

Any comments?


Yes..

As rambones say.. More specifically, the wave counter in the SID-chip may for example be reset using the test bit. Switching it back and forth (1=hold it reset/0=start wave counter again) would reset it, which one could imagine could very well happen in some players during one single "tick" of the player, even if it is a single speed tune. (Especially since the testbit is often used deliberatly in the process of doing "Hard Restart".)
2004-05-29 11:42
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Just so I get this straight..

Hardrestart is resetting the OSC to start the waveform from point 0, or ?


2004-05-30 12:00
Frantic

Registered: Mar 2003
Posts: 1648
Rambones: Well, flipping the testbit back and forth seems to be resetting the counter to 0, yes. Further info can be found here for example:

http://stud1.tuwien.ac.at/~e9426444/sidtech4.html

However.. About "Hardrestart":

I don't know if there is really any clear definition of exactly what hardrestart is supposed to be, since different people seem to use slightly different methods. But the point in all those cases should be to have ADSR to behave in a more consistent way. I'm not sure weather everyone actually use a method that involves the testbit. (If I remember correctly, my experience is that flipping the testbit may also introduce a little click sometimes, but maybe I just wasn't careful when testing it... Maybe there is other Hardrestart methods?)

Hope I didn't lie about anything now.. :)
2004-06-04 22:05
Stirf
Account closed

Registered: May 2002
Posts: 26
have a nice trick for SID readout... trick the player!how?make $d400 ram while calling to $1003 (play) and stash that somewhere in normal RAM then copy to say "rom" (I mean the normal situation) and use the stashed data to save or manipulate, I believe a lot musicplayers can be tricked this way.I have actually used this long ago so it works.
2004-06-04 22:52
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Yes it works, but if f.ex D404 is written 3+ times, with values A,B,A - you only get A after a grab, so the playback will not be correct.

Previous - 1 | 2 | 3 | 4 - 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
CreaMD/React
Bob/Censor Design
ThunderBlade/BLiSS
Mojzesh/TGR🇬🇧
Spinball/Excess
MCM/ONSLAUGHT
TheEnemy/TREX/THD
Sychamis
Alakran_64
Scorpion/Contex / Ar..
Shogoon/Elysium/MSL
GI-Joe/MYD!
Magic/Nah-Kolor
WVL/Xenon
MWR/Visdom
Gregfeel/Lepsi De, S..
Guests online: 115
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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