[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with IIGS Slot Register $C02D
Well...
It seems that even GS/OS 6.0.1 never got around to implementing the ability
actually to switch internal/external slots with DYN_SLOT_ARBITER (as
described in GS Tech Note #69).
So, that would appear to be a dead end.
A step/trace of the internal serial port firmware reveals different coding
depending upon whether the default setting is set to 'Printer' vs. whether
the default is 'Your Card' and later changed to 'Printer' with a poke to
$C02D. I _think_ the difference involves the routines that read the default
control panel settings (Baud/Handshaking/etc) for the serial port firmware.
I'll try to get to the bottom of this and post a solution.
Hugh Hood
in article C9058810.640C%hughhood@earthlink.net, Hugh Hood at
hughhood@earthlink.net wrote on 11/14/10 12:35 PM:
> Still no joy in "II-ville." <grin>
>
> Fiddling with the $C006/$C007/$C015 softswitches didn't make it happen
> either.
>
> I'll add that to my failed attempts with $CFFF, and resetting the SCC (both
> hardware and channel resets) and Pascal 1.1 firmware resets.
>
> But, I _may_ be on to something.
>
> IIGS Tech Note #69 discusses dynamic slot arbitration by calling
> DYN_SLOT_ARBITER. ($E10208 in a ROM 3). Other info on this routine suggests
> that it can be used outside of GS/OS, so there is hope that one can switch
> freely between a boot-time 'Your Card' setting and the built-in port without
> having to re-boot.
>
> Now, please excuse me as an 8-bit guy grits his teeth as he re-learns
> (again) some 65C816 native mode JSL stuff.
>
> Anybody care to help an old man out? Sample code, crumbs, a dime or even a
> nickel?
>
>
>
> Hugh Hood (OK, not _that_ old)
>
>
>
>
>
>>>
>>> Antoine,
>>>
>>> I'll digest and try the routine you posted and will let you know if it works
>>> to enable the SCC internal printer firmware when 'Your Card' is the initial
>>> cold-boot setting and the $C02D slot register is subsequently changed to the
>>> internal printer firmware from the initial 'Your Card' setting.
>>>
>>> FWIW, tickling $CFFF within the change routine (my idea) didn't help.
>>>
>>> Thanks.
>>>
>>>
>>>
>>>
>>> Hugh Hood
>>
>>
>> in article 7765b1bd-b78a-46f2-9a34-55a1b624859e@u10g2000yqk.googlegroups.com,
>> Toinet at antoine.vignau@laposte.net wrote on 11/3/10 3:28 PM:
>>
>>> There may be other softswitches to use...
>>>
>>> SETSLOTCXROM EQU $C006
>>> SETINTCXROM EQU $C007
>>> RDCXROM EQU $C015
>>>
>>> *
>>> * Since we'll make a call to sethooks and doffsvk, we gotta
>>> * make sure that the all the $CX00 rom space is banked in.
>>> * We also must restore it when we're done.
>>> *
>>> entry LDA |RDCXROM
>>> PHA
>>> STA |SETINTCXROM
>>>
>>> *
>>> do your stuff
>>> *
>>>
>>> exit PLA
>>> BMI exit2
>>> STA |SETSLOTCXROM
>>> exit2 EQU *
>>>
>>> *
>>> *
>>> *
>>>
>>> SETSLOTCXROM EQUDS.B 1 ;use ROMS on cards
>>> SETINTCXROM EQUDS.B 1 ;use internal ROM
>>> RDCXROM EQUDS.B 1 ;Bit 7=1 if using int rom
>>>
>>> Good luck,
>>> antoine
>