Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« on: December 31, 2012, 03:54:57 AM »
Why can't u boot your PALboot floppy disk first
and then boot your game disk 2nd?

Like we have been doing since 1980s?

If it is a floppy disk emulator then surely it works exactly like a real floppy disk works?
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #1 on: December 31, 2012, 05:10:45 AM »
Quote from: desiv;720758
While I agree that it should work that way (I don't have one)..

It would be nice to not have to do that, and if the floppy emulator menu could, it would be nice...

desiv


But its a disk emulator.  Surely it can boot a palboot disk in say... 0.1 seconds?

Then the user selects his option(s) and clicks the button.

Hmmm....  Is that the problem?  You can never change the disk after you pick?

This whole thing makes no sense to me.

If u can only pick one floppy... then what good is the device?  What if the game takes more than 1 disk?  How do u change the disk in the middle of the game?  It just crashes?


And it makes no sense to ask for just a PAL/NTSC option when that only fixes some games.  What about all the games that require you to disable all fastmem?  What about all games that require u to disable all external drives?  What about all the games that require ALL memory above 512k to be disabled?  There are many different options that are required but those are the most common.  There are a few games that require exactly KS 1.2 or exactly KS1.1 or exactly KS1.3 or KS2.04+ or KS3.0+
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #2 on: December 31, 2012, 05:16:32 AM »
Quote from: blakespot;720754

I am an American user with an NTSC A2000. I would, usually, load Degrader to set to PAL mode and then reboot to run all demos and many games. This is not really possible in the event chain of using the HxC2001.


Are you sure about this?

So I can't play any of the thousands of Amiga games that come on 2 disks or more?

So basically I can't play any Cinemaware game?
I can't play Superfrog?
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #3 on: December 31, 2012, 05:42:43 AM »
Ok so he just wants to build in degrader (or other similar tool(s)) in such a way that it looks kewl with demofx and music and stuff.  Like that thing they use on PS3.

You can always disassemble degrader.  Tho there are easier ways.
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #4 on: December 31, 2012, 05:47:43 AM »
Quote from: desiv;720763

And many many many more games are PAL than have weird requirements around memory config.


True.  But there are still hundreds of games with weird memory config or must disable extra floppy drives config.
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #5 on: December 31, 2012, 05:55:45 AM »
Quote from: desiv;720763

But they have a full screen Amiga program that lets you choose which disk (again, you don't HAVE to use that, you can use the LCD and the buttons).  But using THIS program (as it's an Amiga program), you can't run a degrader disk  and then the game.
So you couldn't use that program to load Degrader,

But its an Amiga.  Any program can run any other program.  Its called Multitasking.  On the Amiga, all programs love each other and play with each other any time they want. :knuddel:

Their special bootmenu program can have a "Run Degrader" option.  Which then runs Degrader.  Quick ten minute fix.
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #6 on: December 31, 2012, 12:22:34 PM »
Quote from: alexh;720784
BEAMCON0 bit 5 toggles between NTSC and PAL.


There is more to it than that.
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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #7 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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #8 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 ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #9 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 ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #10 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 all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #11 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 ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #12 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 ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #13 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 ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show all replies
    • http://totalchaoseng.dbv.pl/news.php
Re: Code to boot into PAL or NTSC modes?
« Reply #14 on: 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