Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show all replies
Re: PAL/NTSC Check?
« on: November 10, 2010, 02:45:49 PM »
Quote from: Super TWiT;590725
I am trying to sort out whether I truly have a pal or ntsc amiga and test different emulated conditions as well.  As it turns out, sysinfo always says I am operating under a pal setup (both with my real amiga and an emulated ntsc amiga 500).  Anyway, I found this assembler code from here.  When trying to assemble the topmost example with vasmm68k for linux, I get these errorsAnyone have any ideas as to why the example code won't work?  Is it the way my text editor saves unix-type line returns?


While I only use DevPac myself and not in the standard way (ie: with includes etc...), after a quick look at the code your using, is the assembler package you use setting up the proper assign & includes for assembling. Otherwise things like the line...

cmp.b   #50,VBlankFrequency(a6)

The label VBlankFrequency would not be recognised...

I could quickly Assemble the code myself for you into a 68k prog and email you it if you really need it... :)
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show all replies
Re: PAL/NTSC Check?
« Reply #1 on: November 10, 2010, 03:14:35 PM »
Sorry I don't have a clue about Linux, but a quick look at the code your trying to assemble...

   move.l   4.w,a6          ; execbase
   cmp.b   #50,VBlankFrequency(a6)
   beq.s   .pal

     jmp   I'm NTSC
.pal   jmp   I'm PAL

   move.l  GfxBase,a6
     btst      #2,gb_DisplayFlags(a6)  ; Check for PAL
   bne.s   .pal

     jmp   I'm NTSC
.pal   jmp   I'm PAL


Firstly this would not assemble into anything useable even from the cli/shell. It needs routine's to print out on the cli/shell the result ie: PAL or NTSC. All this bit of code is for is to show you which bit's of the exec.library & graphics.library you would need to check in order to find out whether your Amiga is running in PAL or NTSC mode.

So unless you have the source code for the rest of the routines their is not much point in trying to assemble it at all, sorry... :(