home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15394 < prev    next >
Encoding:
Text File  |  1992-11-05  |  2.4 KB  |  62 lines

  1. Nntp-Posting-Host: sognsvann.ifi.uio.no
  2. Newsgroups: comp.sys.amiga.programmer
  3. 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
  4. From: olavka@ifi.uio.no (Olav Lur}s Kalgraf)
  5. Subject: Re: PAL or NTSC, how to c
  6. Message-ID: <1992Nov5.095622.9939@ifi.uio.no>
  7. Sender: olavka@ifi.uio.no (Olav Lur}s Kalgraf)
  8. Organization: Dept. of Informatics, University of Oslo, Norway
  9. References: <110.193.uupcb@ssr.com> <1908@lysator.liu.se>
  10. Date: Thu, 5 Nov 1992 09:56:22 GMT
  11. Lines: 48
  12. Originator: olavka@sognsvann.ifi.uio.no
  13.  
  14.  
  15. In article <1908@lysator.liu.se>, marvil@lysator.liu.se (Martin Vilcans) writes:
  16. > jani.patokallio%acc1bbs@ssr.com (Jani Patokallio)  writes:
  17. > >->  OV> Does anyone know how to check whether a amiga is in pal or ntsc mode ?
  18. > >->  OV> Maybe there is a bit in the $dff... area or something like that.
  19.  
  20. Well, yes maybe, the bit in the dff....??  hmmmm I dont remember exactly
  21. but there is a place where the chips have an ID code. Consult HRM if you
  22. want to do it the hard way. This does not have anything to do with the
  23. display though, just the clocking.
  24.  
  25. > >A usable but somewhat unreliable method of checking the system is checking
  26. > >the word at SysBase+2, it's the height of Workbench in pixels.  Naturally,
  27. > >nowadays with ECS and AGA you'll need to enter several dozen values
  28. > >and it won't work if the user is using something like MegaWB (1024x1024
  29. > >virtual screen), and it can't detect if the user has switched modes without
  30. > >resetting.
  31. >
  32.  
  33. Well, actually I think you've got something here......
  34.  
  35.  
  36. > The best way is perhaps to check the byte in the ExecBase structure which
  37. > contains the current picture frequency. I don't remember it's name or
  38. > offset, mail me if you want to know, but if it contains the value 60, the
  39. > screen is in NTSC mode, and 50 for PAL.
  40.  
  41. This offset is VBLANKFREQUENCY, but there is a small catch with using 
  42. this byte. It does NOT change EVER. Even if you change from PAL to NTSC
  43. using the screenmode prefs program. You can use this byte to determine
  44. the clocking of the CIA's =) but little else. :(
  45.  
  46.  
  47. ---------------
  48.  
  49. So, the way to do it, must be by looking at the doc's and includes for
  50. things conserning openscreen() in
  51.  
  52. dc.b 'intuition.library',0        ;=)
  53.  
  54. There must be a way to specify PAL/NTSC there, but I don't remember HOW!
  55. So, I guess it's back to the ol' tomes, eh?
  56.  
  57.  
  58.     Regards Olav Kalgraf
  59.