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

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
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

  • FBNeo Contributor
  • *****
  • Posts: 205
  • 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

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • 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

  • FBNeo Contributor
  • *****
  • Posts: 205
  • 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

  • FBNeo Contributor
  • *****
  • Posts: 205
  • 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: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: Porting MAME drivers
« Reply #35 on: July 16, 2015, 04:39:55 PM »
nice :)

Offline vbt

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

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • 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

  • FBNeo Contributor
  • *****
  • Posts: 205
  • 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 Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • 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 »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • 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 Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • 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

  • FBNeo Contributor
  • *****
  • Posts: 205
  • 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 Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • 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

  • FBNeo Contributor
  • *****
  • Posts: 205
  • 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.