Welcome, Guest. Please login or register.

Author Topic: Code to boot into PAL or NTSC modes?  (Read 8390 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #14 on: December 31, 2012, 04:31:48 PM »
Quote from: psxphill;720790
It's generally all that anyone does though.
 
http://thecryptmag.com/Online/49/PaltoNTSCandBack.html
 
You can update execbase too, the source code here does that.
 
http://aminet.net/util/misc/60HzEmulator.lha
 
A lot of the source is useless, it allows switching using key combinations and faking vblank using a cia (if you don't have a fat agnus).
Updating exec base is mostly useless, generally the reason why you are switching is because the software doesn't bother to detect the mode.


All I know is there is more to it than just switching the video mode to PAL.  You do that with a single instruction, no need for reboot.  It also won't make most PAL games actually work.  I assume it is that execbase thing is the secret magic but I never knew.  Now that I think about it, I think it is the execbase thing.  But u can't just do it "in real time".  You would need to change the execbase var and then reset so that the whole OS is "aligned" to the new video mode.  Else all the Amigas blitting routines and so forth would have wrong clip limits, wrong overscan limits, etc.  Nothing will work right.

There are 2 kinds of palboot utilities.
A: The kind that claim to work instantly but do not actually work. They do switch the video to PAL mode but 99% of games do not work right then.  A giant portion of the screen gets chopped off or other weird things.

B: The kind that does some secret magix and then resets your Amiga.  Those kind actually work with all PAL games.

I have tested a gazillion palswitchers that don't actually work + a few others that do really work.  I even coded one myself.  I just set the beamcon bit and BAM I was in PAL mode.  It was awesome.  It was also completely useless.  Anytime I loaded a PAL game it was all screwed up.  Only using a real PALbooter that resets the machine actually works.

@FloppyEmu guys: You have been warned.

p.s. I have not read the article linked above.  I assume it has all the needed infos but I am not sure.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #15 on: December 31, 2012, 04:35:48 PM »
Quote from: desiv;720791

If Degrader multitasks happily, and so does their app, that would work great!!
Heck, just spawn degrader in the background and tell the user to Amiga-M to get to it.  ;-)

The program can do a ScreenToFront() (or whatever its called) on the other screen to pop it up automagixically :)
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline psxphill

Re: Code to boot into PAL or NTSC modes?
« Reply #16 on: December 31, 2012, 06:52:48 PM »
Quote from: ChaosLord;720796
Else all the Amigas blitting routines and so forth would have wrong clip limits, wrong overscan limits, etc. Nothing will work right.

Setting the refresh rate doesn't change how much chip ram has been allocated for the screen, so blitting would never be affected.
 
I'm pretty sure that it just leaves a blank area or clips the screen, depending on whether you're going from NTSC to PAL or PAL to NTSC.
 
Most games never look at execbase, they just open the screen they want (and usually with custom copper lists). Running a PAL game on an NTSC Amiga just crops the bottom off.
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #17 on: December 31, 2012, 07:11:50 PM »
Quote from: psxphill;720811
Setting the refresh rate doesn't change how much chip ram has been allocated for the screen, so blitting would never be affected.
 
I'm pretty sure that it just leaves a blank area or clips the screen, depending on whether you're going from NTSC to PAL or PAL to NTSC.
 
Most games never look at execbase, they just open the screen they want (and usually with custom copper lists). Running a PAL game on an NTSC Amiga just crops the bottom off.


A game does not have to "look at execbase".  It merely has to look at or use something that once upon a time, when the computer first booted up, got set as a result of execbase.

Are you claiming that all games do not use MrgCop()?  Or any other routine in the kickstart ROM whatsoever?

I have seen disassemblies of games and they DO use OS routines.  Those routines behave differently depending on the mode the computer was in when it first booted.


For the few games that literally do not use any kickstart routines at all, a simple switch to pal mode should work, theoretically.

For all other games one must do a "deep" palboot.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline psxphill

Re: Code to boot into PAL or NTSC modes?
« Reply #18 on: December 31, 2012, 07:22:24 PM »
Quote from: ChaosLord;720813
Are you claiming that all games do not use MrgCop()? Or any other routine in the kickstart ROM whatsoever?

Most games don't, they disable multitasking, use custom copper lists etc.
 
WHDLOAD has to do it's magic to run them from hard disk.
 

Offline Mrs Beanbag

  • Sr. Member
  • ****
  • Join Date: Sep 2011
  • Posts: 455
    • Show only replies by Mrs Beanbag
Re: Code to boot into PAL or NTSC modes?
« Reply #19 on: December 31, 2012, 07:52:34 PM »
Even a game that runs normally from hard disk can still disable multitasking and use custom copper lists, and be otherwise system friendly.
Signature intentionally left blank
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #20 on: January 01, 2013, 12:25:07 PM »
Quote from: psxphill;720815
Most games don't, they disable multitasking,

You can disable multitasking and still easily call OS routines located in kickstart ROM.

Quote

 use custom copper lists etc.

I use custom copper lists in my 100% AmigaOS compliant, fully multitasking, play while online, games.

Using custom copper lists does not mean u never use the OS.

And u definitely can't make a reliable palboot just by setting that one bit that flips the video into PAL mode.  There is more to it than that.  I have played at least 1000 different PALboot games and I have seen the problems with my own eyes a zillion times.  A good palbooter works perfectly on all games.  A super simple one might work ok for a few games but all the rest will be braindamaged.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #21 on: January 01, 2013, 12:26:15 PM »
Quote from: Mrs Beanbag;720817
Even a game that runs normally from hard disk can still disable multitasking and use custom copper lists, and be otherwise system friendly.

+1
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline psxphill

Re: Code to boot into PAL or NTSC modes?
« Reply #22 on: January 01, 2013, 12:59:16 PM »
Quote from: ChaosLord;720859
A super simple one might work ok for a few games but all the rest will be braindamaged.

A super simple one will work for the majority of 80's/90's PAL games. The later HD installable ones tended to be more system friendly, but then they would generally open the screen mode properly anyway.
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #23 on: January 01, 2013, 01:28:16 PM »
Quote from: psxphill;720864
A super simple one will work for the majority of 80's/90's PAL games.

There is already a simple one built in to KS 3.0+ and it already does not work on a majority of PAL games.


Quote

 The later HD installable ones tended to be more system friendly, but then they would generally open the screen mode properly anyway.

Very very very few PAL games open the screen mode properly.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline blakespotTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 880
  • Country: us
  • Thanked: 8 times
  • Gender: Male
  • Visit ByteCellar.com
    • Show only replies by blakespot
    • ByteCellar - The Vintage Computing Blog
Re: Code to boot into PAL or NTSC modes?
« Reply #24 on: January 01, 2013, 04:10:45 PM »
The HxC2001 boot menu program would always issue a reboot, making the task simpler (then live-switching a running system to a different mode, without reboot), thankfully.


bp
:: ByteCellar.com - The Vintage Computing Weblog
:: Amigas: 1000, 2000 '020, SAM440ep-Flex
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #25 on: January 01, 2013, 08:29:12 PM »
Can HxC2001 handle games with more than 80 tracks?
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline Jeff_HxC

  • Jr. Member
  • **
  • Join Date: Apr 2006
  • Posts: 69
    • Show only replies by Jeff_HxC
    • http://hxc2001.free.fr
Re: Code to boot into PAL or NTSC modes?
« Reply #26 on: January 01, 2013, 09:21:49 PM »
Quote from: ChaosLord;720921
Can HxC2001 handle games with more than 80 tracks?


Yes up to 255 tracks.
 

Offline Jeff_HxC

  • Jr. Member
  • **
  • Join Date: Apr 2006
  • Posts: 69
    • Show only replies by Jeff_HxC
    • http://hxc2001.free.fr
Re: Code to boot into PAL or NTSC modes?
« Reply #27 on: January 01, 2013, 09:23:59 PM »
Regarding the 50Hz/60Hz i take the lazy way : Add Degrader into the boot script.

http://hxc2001.com/download/floppy_drive_emulator/AUTOBOOT_Amiga_WithDegrader.zip

Waiting for feedback.
 

Offline JimDrew

  • Lifetime Member
  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 241
    • Show only replies by JimDrew
Re: Code to boot into PAL or NTSC modes?
« Reply #28 on: January 01, 2013, 09:53:18 PM »
Either add a toggle switch to Agnus' PAL/NTSC jumper, or if you are using OS3.x (maybe 2.x as well), just hold down the mouse button while booting and select NTSC or PAL.
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #29 from previous page: January 01, 2013, 09:54:10 PM »
Quote from: Jeff_HxC;720929
Yes up to 255 tracks.
:laugh1:
That should pretty well cover it. :)

I like the sound of your device.  It sounds like it could be a more reliable alternative to WHDLoad, depending on how well its coded, designed and so forth.

I don't really know anything about it yet but I am definitely thinking of getting 1 or 3 of them.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA