|
Post by Roman on Jun 14, 2004 5:55:38 GMT -5
Whether it is possible to make with the help BasiEgaXorz a picture by the size 320x240 in a mode PAL (MegaDrive-II)? In the console SEGA there is a register C00004h (bit D0) and register number 2 area VDP (bit D3), which switch PAL-NTSC. However for this purpose in the program BasiEgaXorz it is required to increase quantity of row with 28 up to 30 and to enter the operator set_pal. It is real?
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Jun 15, 2004 13:01:57 GMT -5
Currently the compiler only compiles for NTSC tv's. To force programs to go into PAL, you're going to need to do some heavy stuff. FIrst, here's some assembly language to correctly switch the VDP registers:
asm "or.b #$08,(VDP_MODE2)" asm "move.w #$8100,d0" asm "add.b (VDP_MODE2),d0" asm "move.w d0,($C00004)"
Notice: you can't just do move.w #$8108,($C00004) because basic holds the last value that the vdp reg was before it was set. basic modifies this register occasionally
Also, step 2 into getting your program to run in PAL on an emulator is to modify byte $1F0 in the genesis rom header. $1F0 has to have an ascii value of "E", eg european. you can do this in a hex editor on your rom, or some utility may exist. I'll add an option in the compiler in a later release to compile rom files for PAL video. I can't do this with sega cd though, you'd need to use the subroutine above, and then use scdconv
|
|