PDA

View Full Version : PAL60 under KOS.



chui
September 6th, 2005, 16:57
Anybody knows 'vid_set_mode_ex(vid_mode_t *mode)' values for PAL60 screen modes?

I need it for my SDL driver, now i use NTSC screen modes for 60Hz.

Pavlik
September 6th, 2005, 21:58
For Katana value you can ask Nachbrenner from XploderFreaX.de Maybe he know also value for KOS... He is a good code hacker and my teacher. He makeing PAL 50/60Hz and NTSC codes for PSX/DC/PS2

Rone
September 7th, 2005, 07:46
Hi

60 hz:
DM_320x240 ,
DM_640x480,
DM_800x608,
DM_256x256,
DM_768x480,
DM_768x576

other:
(PAL=50hz)
DM_320x240_VGA ,
DM_320x240_NTSC,
DM_640x480_VGA,
DM_640x480_NTSC_IL,
DM_800x608_VGA,
DM_640x480_PAL_IL,
DM_256x256_PAL_IL,
DM_768x480_NTSC_IL,
DM_768x576_PAL_IL,
DM_768x480_PAL_IL,
DM_320x240_PAL,

chui
September 7th, 2005, 09:42
But these default DM_XXXxXXX values are NTSC screen modes, not PAL60.

Phantom
September 8th, 2005, 10:35
But these default DM_XXXxXXX values are NTSC screen modes, not PAL60.If you use DM_640x480 (etc..) on a PAL Dreamcast it will still use PAL colour encoding. So the result is PAL60.

chui
September 8th, 2005, 11:53
Are you sure? When i use DM_640x480, KOS stdout show NTSC mode and TV info too (when i play european game with 60Hz option TV info show PAL60).

Also, i can't find at 'kos/kernel/arch/dreamcast/hardware/video.c' PAL60 timmings, only NTSC and PAL50.

Phantom
September 8th, 2005, 15:43
Are you sure?I was sure... but after your last post I'm not anymore. ;) If your TV shows "PAL60" for commercial games and "NTSC" for KOS then there must be a difference in the signal.

flaming_carrot
September 8th, 2005, 19:19
If you absolutely want to output PAL, read up on hardware register 0xa05f80d0, specifically bits 6 and 7: bit 7 is set for PAL output and bit 6 for NTSC. However, this doesn't seem to work for Japanese dreamcasts.

So, I don't know anything about KOS, but if you initialize a standard NTSC display and then clear bit 6 and set bit 7 of that register, you might have a PAL60 output signal....

chui
September 11th, 2005, 18:11
Thanks. I will try it.

scherzo
September 12th, 2005, 14:13
I have a question a related to this subject.

A couple of people have given me the impression that the DC can do just about any mode you can fathom, as long as you give vid_set_mode_ex a properly formulated struct. Some people could probably guess that I'm looking for an NTSC mode of 256x224, roughly. This would be for a true NES mode in NesterDC SE.

I've already tried playing with vid_set_mode_ex. I used the builtin 320x240 NTSC as a base and tried tweaking that. It actually shows up but it is not positioned correctly, and no amount of tweaking various values produces what I want.

Any ideas?