IDEA: ct2util param that allows us to select baseaddress for 2nd SID
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.
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.
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.
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.
Aw yes, zp,y could probably be used as well.
Anyhow, won't happen unless it's absolutely necessary. :)