home *** CD-ROM | disk | FTP | other *** search
- Nntp-Posting-Host: sognsvann.ifi.uio.no
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!olavka
- From: olavka@ifi.uio.no (Olav Lur}s Kalgraf)
- Subject: Re: PAL or NTSC, how to c
- Message-ID: <1992Nov5.095622.9939@ifi.uio.no>
- Sender: olavka@ifi.uio.no (Olav Lur}s Kalgraf)
- Organization: Dept. of Informatics, University of Oslo, Norway
- References: <110.193.uupcb@ssr.com> <1908@lysator.liu.se>
- Date: Thu, 5 Nov 1992 09:56:22 GMT
- Lines: 48
- Originator: olavka@sognsvann.ifi.uio.no
-
-
- In article <1908@lysator.liu.se>, marvil@lysator.liu.se (Martin Vilcans) writes:
- > jani.patokallio%acc1bbs@ssr.com (Jani Patokallio) writes:
- >
- > >-> OV> Does anyone know how to check whether a amiga is in pal or ntsc mode ?
- > >-> OV> Maybe there is a bit in the $dff... area or something like that.
-
- Well, yes maybe, the bit in the dff....?? hmmmm I dont remember exactly
- but there is a place where the chips have an ID code. Consult HRM if you
- want to do it the hard way. This does not have anything to do with the
- display though, just the clocking.
-
- >
- > >A usable but somewhat unreliable method of checking the system is checking
- > >the word at SysBase+2, it's the height of Workbench in pixels. Naturally,
- > >nowadays with ECS and AGA you'll need to enter several dozen values
- > >and it won't work if the user is using something like MegaWB (1024x1024
- > >virtual screen), and it can't detect if the user has switched modes without
- > >resetting.
- >
-
- Well, actually I think you've got something here......
-
-
- > The best way is perhaps to check the byte in the ExecBase structure which
- > contains the current picture frequency. I don't remember it's name or
- > offset, mail me if you want to know, but if it contains the value 60, the
- > screen is in NTSC mode, and 50 for PAL.
- >
-
- This offset is VBLANKFREQUENCY, but there is a small catch with using
- this byte. It does NOT change EVER. Even if you change from PAL to NTSC
- using the screenmode prefs program. You can use this byte to determine
- the clocking of the CIA's =) but little else. :(
-
-
- ---------------
-
- So, the way to do it, must be by looking at the doc's and includes for
- things conserning openscreen() in
-
- dc.b 'intuition.library',0 ;=)
-
- There must be a way to specify PAL/NTSC there, but I don't remember HOW!
- So, I guess it's back to the ol' tomes, eh?
-
-
- Regards Olav Kalgraf
-