Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: VBL frequency F030
Posted by: evil Feb,14.2012-20:35 

You can use VsetMode() with parameter -1 and then you'll get a word in d0 with the current settings.

Just remember that this will just return the Xbios settings, not eventual changes made to hardware registers.

move.w #-1,-(sp)
move.w #$58,-(sp)
trap #14
addq.l #4,sp

Bits
0-2 = bits per pixel (1,2,4,8,16)
3 = 40/80 columns (set = 80)
4 = VGA/TV (set = VGA)
5 = PAL/NTSC (set = PAL) this is the one you're out for
6 = Overscan (set = Overscan)
7 = ST mode (set = use ST compatible mode)
8 = Vertical mode (set = interlace on RGB, linedouble on VGA)


Or just read Atari Compendium 4.106 :)

--
Anders Eriksson
ae@dhs.nu








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

Topic Posted by  Date 
VBL frequency F030 Simon Sunnyboy / Paradize Feb,14.2012-19:21
  Re: VBL frequency F030 evil Feb,14.2012-20:35
    Re: VBL frequency F030 Simon Sunnyboy / Paradize Feb,15.2012-18:49
      Re: VBL frequency F030 evil Feb,15.2012-22:18
        Re: VBL frequency F030 gwem Feb,15.2012-23:53
          Re: VBL frequency F030 Simon Sunnyboy / Paradize Feb,16.2012-19:09


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-2024 Dead Hackers Society Contact: Anders Eriksson