Author Topic: Porting MAME drivers (vbt's work in progress)  (Read 21372 times)

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Porting MAME drivers
« Reply #30 on: July 10, 2014, 10:15:38 am »
Thanks for the help, Treble Winner

Here's the latest d_sys1.cpp, added Choplifter (parent / broken until protection MCU emulated), Choplifter (unprotected / working) and Choplifter (bootleg / working).  Also added to the svn.  Thanks vbt, the next FBA will have your choplifter driver :)
I used to play this game a lot back in the C64 days, so it is a great addition to this great emulator.

best regards,
- dink

Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #31 on: July 14, 2015, 04:02:20 pm »
Quote
   ROM_LOAD_NIB_HIGH( "bprom.4b",0x0000,0x0100,CRC(dd233851) SHA1(25eab1ec2227910c6fcd2803986f1cf206624da7) )
   ROM_LOAD_NIB_LOW(  "bprom.4c",0x0000,0x0100,CRC(60aaa686) SHA1(bb2ad555da51f6b30ab8b55833fe8d461a1e67f4) )
how to port that in fba ?  :S

Online iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: Porting MAME drivers
« Reply #32 on: July 14, 2015, 05:17:19 pm »
allocate 0x200 bytes of memory.

BurnLoadRom(colprom + 0, .., 2); // 2 is spaces
BurnLoadRom(colprom + 1, .., 2);

for (int I = 0; I < 0x200; I+=2) {
     colprom[I/2] = (colprom[I+0] & 0x0f) | (colprom[I+1] << 4);
}

(you may need to swap [I+0] & [I+1] in the above.
« Last Edit: August 20, 2015, 02:29:27 pm by iq_132 »


Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #33 on: July 14, 2015, 06:08:27 pm »
allocate 0x200 bytes of memory.

BurnLoadRom(colprom + 0, .., 2); // 2 is spaces
BurnLoadRom(colprom + 1, .., 2);

for (int I = 0; I < 0x200; I+=2) {
     colprom[I/2] = (colprom[I + 0] & 0x0f) | (colprom[I+1] << 4);
}

(you may need to swap [I + 0] & [I+1] in the above.

thanks Iq_132, i test that  :cool: :smilie:
« Last Edit: July 16, 2015, 04:54:11 pm by iq_132 »

Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #34 on: July 16, 2015, 03:10:58 pm »
it needed swap :)

another thing to make happy dink ;)
« Last Edit: September 02, 2015, 08:26:45 am by iq_132 »

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Porting MAME drivers
« Reply #35 on: July 16, 2015, 04:39:55 pm »
nice :)

Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #36 on: July 18, 2015, 09:57:53 am »
sprites added, still missing sound and controls

Online iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: Porting MAME drivers
« Reply #37 on: July 19, 2015, 08:53:23 am »
Lovely work guys! Nice to see others writing drivers again!


Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #38 on: August 06, 2015, 02:32:59 pm »

it booted ! :biggrin: well still lot of work :)
« Last Edit: September 02, 2015, 08:27:09 am by iq_132 »

Offline gamez fan

  • Expert
  • *****
  • Posts: 517
  • Karma: +13/-1
  • Arcade Addict
Re: Porting MAME drivers
« Reply #39 on: August 06, 2015, 02:58:14 pm »
@vbt good start but yeah it still needs some work  ;p
« Last Edit: August 06, 2015, 03:05:31 pm by gamez fan »

Online iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: Porting MAME drivers
« Reply #40 on: August 06, 2015, 03:25:16 pm »
@vbt good start but yeah it still needs some work  ;p
You mean GREAT work. Getting it that far is impressive. :)


Offline gamez fan

  • Expert
  • *****
  • Posts: 517
  • Karma: +13/-1
  • Arcade Addict
Re: Porting MAME drivers
« Reply #41 on: August 06, 2015, 03:33:49 pm »
You mean GREAT work. Getting it that far is impressive. :)

Of course i mean that!!! me and vbt wind each other up on the chat my post was a continuation of that :D

Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #42 on: August 07, 2015, 09:34:45 am »
thanks :) i did some fixes, now it needs dink's magical hands :)
« Last Edit: September 02, 2015, 08:27:31 am by iq_132 »

Offline gamez fan

  • Expert
  • *****
  • Posts: 517
  • Karma: +13/-1
  • Arcade Addict
Re: Porting MAME drivers
« Reply #43 on: August 07, 2015, 11:26:18 am »
@vbt it's comming along nicely some good work your doin here!!! just thought i'd mention i remember IQ telling me
wbml uses a completely different drawing routine with 4 layers rather than 1. i assume you know that anyway but thought
i'd mention this incase thats whats causing the grapical niggles above

Offline vbt

  • Member
  • ***
  • Posts: 195
  • Karma: +9005/-0
Re: Porting MAME drivers
« Reply #44 on: August 09, 2015, 12:38:26 pm »
many fixes done, correct title,colors,fg,music but no way to get correct bg even with the 4 pages emulated.