so this TOS modification would make the UBE adapter work flawlessly by software-switching all 3 resolutions.
There was already some work done to run a color program from a mono workstation, if the color program didn't use GEM (because bitplane shifting etc).
So the UBE switch should be fine, caring about seamlessly disconnecting the mono line from the VGA side and connecting the RGB lines instead.
What I want to say: this TOS patch can be useful for many users of normal STs running a single VGA screen for the 3 resolutions. No more button presses. One could even create some helper programs registered for the extensions *.PR1, *.PR2 and *.PR3 which would first switch GEM into the correct resolution and then run the program.
Also for the reset in case the mono-pin toggles: this is a pure software solution. The pin is checked in VBL or TimerC. It's very easy to disable with a little tool. Just point $46e to an rts.
No comment on the 'ingeniosity' of the below code.
NOSWRSET.S (1990)
Code: Select all
pea start(pc)
move.w #38,-(sp)
trap #14
addq.l #6,sp
clr.w -(sp)
trap #1
start:
move.l $4.w,a0
serachloop:
cmp.w #$4e75,(a0)+
bne.s serachloop
subq #2,a0
move.l a0,$46e.w
rts