CheeseCutter icon indicating copy to clipboard operation
CheeseCutter copied to clipboard

IDEA: ct2util param that allows us to select baseaddress for 2nd SID

Open BerggreenDK opened this issue 10 years ago • 4 comments

Some multisid solutions dont use $d420 as far as I have understood so it would be nice to be able to reallocated the calls to the 2nd SID using ct2util/export functionality.

something like:

ct2util.exe -baseaddr2 $d540

ct2util.exe -baseaddr2 $d480

etc.

BerggreenDK avatar Jul 10 '15 18:07 BerggreenDK

Sure, could be done with some limits. But until someone points a real world situation where 2nd sid is elsewhere than in $d420-$d438, I'll be giving it a pass. :)

The routine uses 6502's x index register for sid writes which is 8 bits wide, so everything has to be within single page ($d400-$d4ff).

Working around that is not straightforward.

theyamo avatar Jul 11 '15 06:07 theyamo

so no usage of zeropage registers for the d400 area? hmm I will have to ask Lotus why the SIDfx hardware supports so many settings.

BerggreenDK avatar Jul 12 '15 10:07 BerggreenDK

The only sensible way would be to use a temporary buffer which a separate routine would write to actual sid registers. Extra cycles, extra memory use.

theyamo avatar Jul 12 '15 12:07 theyamo

Aw yes, zp,y could probably be used as well.

Anyhow, won't happen unless it's absolutely necessary. :)

theyamo avatar Jul 12 '15 12:07 theyamo