Home | Forums | What's new | Resources | |
SMS emulator running on SATURN |
Denis - Dec 18, 2001 |
Denis | Dec 18, 2001 | |||
yes! Check my page for screenshots http://phemusat.tripod.com... |
Artemio Urbina | Dec 18, 2001 | |||
WOW! Great news man =) Congratulations.. Hope I had some real time to help you out in those proyects... Ahhh.. *sigh* Someday |
Denis | Dec 19, 2001 | |||
Hi! By the way for "hack" i mean not the tile system - i use saturn bitmap functions For hack i mean that bitmaps must have palette loaded into corresponding nbg color ram - and there i used... color roms from phoenix. So why it's all so bad with colors. Will try your method now. (the thing with cart.rom looks cool - maybe because of it all roms bigger then 256kb crashs) |
TakaIsSilly | Dec 19, 2001 | |||
Geez, that's a bit extreme... Here's a thingie that creates a all diferent colors pallete : void quick_pal(void) { color_palette = (Uint16 *) VDP2_COLRAM; int index; for(index = 0; index <= 0x1F; index += 1){ color_palette[index]=makecol8(index,index,index); //Grayscale color_palette[index+32]=makecol8(index,0,0); //Red color_palette[index+64]=makecol8(0,index,0); //Green color_palette[index+96]=makecol8(0,0,index); //Blue } } (again, use makecol8 from the Phoenix emu) This covers the first 128 colors (SMS uses only 64), and it's way faster and nicer looking that the poor looking Phoenix palletes. |
TakaIsSilly | Dec 19, 2001 | |||
Just to add. Never trust malloc() on Saturn. It's a fiend of the devil, since it basicly alocates memory without really checking if he's overwriting other static data other than what the original program creates (ie. libraries and the SGL enviorment could be overwritten) |
Denis | Dec 19, 2001 | |||
TakaIsSilly! I send you via email my current sources for SMS emu port. Hope you find something in it (maybe correct colors decoding)? |
TakaIsSilly | Dec 19, 2001 | |||
I'm assumming that my code didn't work, right? Hnn... |
TakaIsSilly | Dec 19, 2001 | |||
Your video access is trying to do 16-bit coloring (like the PSX). That's quite odd considering you seem to be in a 256 color mode. |
Daniel Eriksson | Dec 19, 2001 | |||
Really cool! An SMS emulator for Saturn! That is amazing! I am sad that i can“t help with anything, but i have just started to learn Saturn C. |
Denis | Dec 19, 2001 | |||
TakaIsSilly! Color decoding works now ok!! Used firts variant of palette setting (as in your first message - lightly modified variant of dos.c "update_palette()", the "extreme" variant not work) Also using new memory assigment (pointer) for base_rom (as you mentioned) - gives working 512kb roms!! Phantasy star works! new screenshots http://phemusat.tripod.com... |
IceDigger | Dec 20, 2001 | |||
since I'm really low on blanks right now.. how's the speed, and most importantly (for PS), is savegame support implemented already? |
Denis | Dec 20, 2001 | |||
Didnt check it yet on real saturn. But possibly it will be (very|little) slow About savestate - currently not implemented, but saturn backup library functions well documented (sorta from samples), so here is no problem to do it. |
IceDigger | Dec 20, 2001 | |||
cool, that's good to hear. good work. |
Pearl Jammzz | Mar 17, 2002 | |||
What speed does the emu run at on the Saturn? Does it support save states and about how many games does it support? Thanks. |
mal | Mar 18, 2002 | |||
Try running it and find out. Or look through this forum. |