Dead Hackers Society
Other BBSes »
 
 

Silly Venture 2019
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: falcon 320x200 st-mode
Posted by: Patrice Mandin Feb,07.2005-19:28 

Yes you can use Xbios(5,...) on Falcon. However, when I wrote the Xbios driver for SDL, I use this to setup/restore the video modes on the various systems:

- To check the monitor:

ST,STE: Getrez()
TT: Egetshift()
Falcon: Montype()

- Read current palette, for later restore:

ST,STE: SetColor()
TT: EgetPalette()
Falcon: VgetRGB()

- Read current video mode, for later restore:

ST,STE: Getrez()
TT: Egetshift()
Falcon: saved_vsetmode = Vsetmode(-1)

- To set video mode (do the same when restoring previous video mode):

First, set your screen address with Setscreen(), then set the mode with:
ST,STE: Setscreen()
TT: Esetshift()
Falcon: Vsetmode()
Then call Vsync() to wait for the screen to be setup at next VBL.

- To set the palette:

ST,STE: Setpalette()
TT: EsetPalette()
Falcon: VsetRGB()

Here is some pseudo code:

- Set 320x200x4 bits mode on Falcon (TV/RGB/VGA):

STMODES = $80 ; ST compatible mode
COL80 = 8 ; 80 column mode
COL40 = 0 ; 40 column mode
BPS4 = 2 ; 4 bits per pixel mode
VGA = $10 ; VGA monitor
PAL = $20 ; PAL mode (50Hz), only used for non VGA monitor

monitor = saved_vsetmode & VGA
; You need to keep the monitor bit when you setup a new video mode
freq = saved_vsetmode & PAL (to keep current RGB/TV refresh rate)
; or use freq = PAL (to force 50Hz mode)
; or use freq = 0 (to force 60Hz mode)
Vsetmode(STMODES|COL40|BPS4|monitor|freq)

- Set 320x200x4 bits mode on TT:

EsetShift(0)

Too bad the various Falcon screen enhancers don't have any developper documentation. I have disassembled some, but doc is still to write for various things.







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
falcon 320x200 st-mode tobe Jan,23.2005-00:23
  Re: falcon 320x200 st-mode deez Jan,23.2005-02:23
    Re: falcon 320x200 st-mode tobe Jan,23.2005-06:25
      Re: falcon 320x200 st-mode mikro Jan,23.2005-11:21
        Re: falcon 320x200 st-mode tobe Jan,23.2005-13:13
          Re: falcon 320x200 st-mode gwem Jan,24.2005-12:37
            Re: falcon 320x200 st-mode evil Jan,24.2005-15:09
              Re: falcon 320x200 st-mode gwem Jan,24.2005-16:15
                Re: falcon 320x200 st-mode earx Jan,25.2005-11:16
                  Re: falcon 320x200 st-mode tobe Jan,27.2005-14:55
                    Re: falcon 320x200 st-mode earx Jan,27.2005-15:47
          Re: falcon 320x200 st-mode Patrice Mandin Feb,07.2005-00:35
            Re: falcon 320x200 st-mode Leonard Feb,07.2005-12:34
              Re: falcon 320x200 st-mode earx Feb,07.2005-14:11
              Re: falcon 320x200 st-mode Patrice Mandin Feb,07.2005-19:28
                Re: falcon 320x200 st-mode earx Feb,07.2005-23:55
                  Re: falcon 320x200 st-mode Patrice Mandin Feb,08.2005-11:06
            Re: falcon 320x200 st-mode earx Feb,07.2005-14:08


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2019 Dead Hackers Society Contact: Anders Eriksson