Author Topic: FBA Driver higemaru on Saturn  (Read 7187 times)

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
FBA Driver higemaru on Saturn
« on: April 17, 2010, 07:38:47 AM »
I'm trying to run Pirate Ship Higemaru on Sega Saturn and getting few palette problems :


On this picture the score background color is wrong it should be blue instead of black.
I have splitted the picture into 2 tilemaps layers. One displays all tiles with palette <16 and the other one >=16 as the Saturn supports only 16 palettes on a tilemap.



On this one, I get problems with sprite palette, i still keep always the same colors for ennemies, on green levels they have to be green, red on red levels, etc. Could you help he to identify/setup correctly sprite palettes ?
Quote
for (i = 0; i < 0x80; i+=4)
   {
      if(i<128) //NBG1 first 16 palettes moved to 16 colors palettes(12 empty)
      {
         colBgAddr[0x000 + i    +xvbt] = tmp[Prom[i+0]];
         colBgAddr[0x000 + i+1+xvbt] = tmp[Prom[i+1]];
         colBgAddr[0x000 + i+2+xvbt] = tmp[Prom[i+2]];
         colBgAddr[0x000 + i+3+xvbt] = tmp[Prom[i+3]];
      }
               //NBG2 next 16 palettes moved to 16 colors palettes(12 empty)
                         // starts at 88 ?   
      colBgAddr2[0x100 + i    +xvbt] = tmp[Prom[i+0+88]];
      colBgAddr2[0x100 + i+1+xvbt] = tmp[Prom[i+1+88]];
      colBgAddr2[0x100 + i+2+xvbt] = tmp[Prom[i+2+88]];
      colBgAddr2[0x100 + i+3+xvbt] = tmp[Prom[i+3+88]];
      xvbt+=12; //to get 12 empty colors

#ifndef USE_MAP
      Palette = tmp[Prom & 0x0f];
#endif
   }

   for (i = 0x80; i < 0x180; i+=4)
   {
      // sprite palettes ?
      colAddr[0x000 + i -     0x80] = tmp[(Prom[i +    0x80] & 0x0f) | 0x10];
      colAddr[0x000 + i+1 - 0x80] = tmp[(Prom[i+1 + 0x80] & 0x0f) | 0x10];
      colAddr[0x000 + i+2 - 0x80] = tmp[(Prom[i+2 + 0x80] & 0x0f) | 0x10];
      colAddr[0x000 + i+3 - 0x80] = tmp[(Prom[i+3 + 0x80] & 0x0f) | 0x10];
#ifndef USE_MAP
      Palette = tmp[(Prom[i + 0x80] & 0x0f) | 0x10];
#endif
   }

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: FBA Driver higemaru on Saturn
« Reply #1 on: April 17, 2010, 07:24:53 PM »
I've fixed sprites palette and blue is back behing score but there is still a bug at the lifes position. It's black instead of blue :


Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: FBA Driver higemaru on Saturn
« Reply #2 on: April 19, 2010, 03:00:27 PM »
Not much success or comment :) I've ported already 2 other driver. I'm still wondering if I do single game emulator or merge them.

Offline Shoometsu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
  • I finally have an avatar XD
Re: FBA Driver higemaru on Saturn
« Reply #3 on: May 06, 2010, 12:24:19 PM »
emulation on Sega Saturn? Impressive. Looking forward to see the final results.
<- Who are you?

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: FBA Driver higemaru on Saturn
« Reply #4 on: May 06, 2010, 05:47:32 PM »
emulation on Sega Saturn? Impressive. Looking forward to see the final results.
Happy to see your reply :)
There is a "final" result for this driver but I don't dare to publish it as I have included the rom inside the binary :redface: . I wrote my own function SaturnLoadRom to read files from the CD-ROM (to avoid to provide ROM), it works well but it was easier for testing with a Pro Action Replay.

http://vberthelot.free.fr/fba/

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: FBA Driver higemaru on Saturn
« Reply #5 on: May 06, 2010, 07:52:11 PM »
Happy to see your reply :)
There is a "final" result for this driver but I don't dare to publish it as I have included the rom inside the binary :redface: . I wrote my own function SaturnLoadRom to read files from the CD-ROM (to avoid to provide ROM), it works well but it was easier for testing with a Pro Action Replay.

http://vberthelot.free.fr/fba/

Why don't you set up an iso with dummy files inside.  You can make a little pc program tool to patch the roms in.  It should be nice and legal that way. :)

Nice work btw. I wish I could have helped with your color issue, but I wouldn't know where to start on the saturn.

Btw2. What z80 core are you using?  You may want to check out the 8080bw games in MAME.  The z80 is more-or-less compatible with the intel 8080. I can point you to quite a few games that you might be able to port drivers for pretty quickly.
« Last Edit: May 06, 2010, 07:54:01 PM by iq_132 »


Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: FBA Driver higemaru on Saturn
« Reply #6 on: May 08, 2010, 05:04:10 PM »
Why don't you set up an iso with dummy files inside.  You can make a little pc program tool to patch the roms in.  It should be nice and legal that way. :)
oops, I've left rom files on the iso but they are not used. Next time, i'll put dummy files like you said.
Quote
Nice work btw. I wish I could have helped with your color issue, but I wouldn't know where to start on the saturn.
no problem,  it was a saturn specific issue and nothing about the driver.
Quote
Btw2. What z80 core are you using?  You may want to check out the 8080bw games in MAME.  The z80 is more-or-less compatible with the intel 8080. I can point you to quite a few games that you might be able to port drivers for pretty quickly.
I use either cz80 or faze depending on the driver. Faze got amazing speed, it was designed for sh4(dreamcast) in asm by Fox68k. Both are really faster than other cores I've tested.