[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IIgs - read 40/80 setting at runtime?



"ict@ccess" <gids.rs@sasktel.net> wrote in message 
3c9af1e7-64f7-444d-9e3b-be24ffd260cd@t11g2000vbc.googlegroups.com">news:3c9af1e7-64f7-444d-9e3b-be24ffd260cd@t11g2000vbc.googlegroups.com...
On Feb 20, 8:43 pm, lyricalnan...@dosius.ath.cx (Steve Nickolas)
wrote:
> I'm able to do this on the //c, is there a defined way to do this 
> on the
> IIgs?
>
> I'm writing some code that checks the 40/80 setting on a computer 
> that
> supports it, and if it's set to 80, does a PR#3. It's tested and 
> working on
> a //c, and on the IIgs I don't need to do it after a reset but 
> would still
> like to do it upon signon (it is initially forced to 40-column 
> mode).
>
> -uso.
> ---------------------
Try this bit of code
You can install it in any of the Basic system files or the applesoft
startup program.
if the caps lock key is down then it will boot into 80 col mode. 
With
it up, then 40 column mode.
You can use other modifier keys as well.  Shift, Control, either 
Apple
key, any key on the keypad.
But these have to be held down during boot.  where as the caps lock,
you can set it and leave it.

300: LDA #04
302: BIT C025
3O5: BNE 308
307: RTS
308: LDA #A0
30A: JMP C300

Understanding the IIGS registers in page C0 goes a long way to help
programming the IIGS under
Prodos 8.  Since GSOS is graphics based, it is not likely you would
set the 80 column screen.

Rob
------------------- <

One minor quibble...
As far as I can tell, GSOS is no more graphics based than ProDOS.

Charlie