Welcome, Guest. Please login or register.

Author Topic: PAL/NTSC Check?  (Read 3134 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: PAL/NTSC Check?
« on: November 10, 2010, 03:44:19 PM »
Instead of this test:

cmp.b   #50,VBlankFrequency(a6)

You could  write a few lines of C:
Code: [Select]
#include <stdio.h>
#include <exec/execbase.h>
#include <proto/exec.h>

int main(int argn, char** argv)
{
printf(&quot;VBlankFrequency is %u Hz\n&quot;, (unsigned)SysBase->VBlankFrequency);
return 0;
}

This will just print out the frequency, it won't do anything else. You should probably do it via GfxBase if using 2.x or higher.

Pretty sure that can be trimmed down if you use dos.library print rather than C stdio.
« Last Edit: November 10, 2010, 03:48:13 PM by Karlos »
int p; // A