Author Topic: Need some help with my libretro port  (Read 47745 times)

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: Need some help with my libretro port
« Reply #60 on: June 21, 2015, 09:02:29 AM »
Irem games, now thats a tricky bunch.  m62 should be alright, thought?

One thing to keep in mind re: m72,92,107 - the frame writes out the data to the screen in lines, and DrvDraw() just simply transfers the data to the screen.

Did you try more than one game from each system?  I'm curious if some work/some don't.
« Last Edit: June 21, 2015, 09:15:07 AM by dink »

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1091
  • Karma: +59/-1
  • Helper
Re: Need some help with my libretro port
« Reply #61 on: June 21, 2015, 02:15:45 PM »
Tried a few on those (only m72,92,107 are concerned), none worked. Since it's an issue that appear on arm32 and not on x86_64, i was wondering if there was any asm code in those ?

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: Need some help with my libretro port
« Reply #62 on: June 21, 2015, 10:27:07 PM »
Theres no asm that I can think of, maybe theres something with the vez/nec v.2x-v.3x cpu emulation on arm?  Like an endian issue or something?

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1091
  • Karma: +59/-1
  • Helper
Re: Need some help with my libretro port
« Reply #63 on: September 12, 2015, 08:16:48 AM »
Today i tried mame078 and mame139 on my rpi2 and there was no issue with irem m72,92,107 games. Do you know which version of mame is irem fba driver based on ?

Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: Need some help with my libretro port
« Reply #64 on: September 12, 2015, 09:17:48 AM »
Today i tried mame078 and mame139 on my rpi2 and there was no issue with irem m72,92,107 games. Do you know which version of mame is irem fba driver based on ?

Irem M62 M63 M72 M90 M92 were added to FBA 0.2.97.09 which was released oct 2011 if those drivers we're ported from the
Currant MAME at that time then it'll be MAME144. M107 however was a more recent FBA addition one other thing of note is the
FBA NEC CPU is pre MAME 123 as it doesnt have the op-code fixes to make Risky Challenge playable so maybe the Irem drivers
are pre MAME 123 also..???

Anyway i dont think the Irem games are the problem i think it's more likely a FBA compatability issue on the Platform your porting to.
« Last Edit: September 12, 2015, 09:26:41 AM by gamez fan »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Need some help with my libretro port
« Reply #65 on: September 12, 2015, 09:38:15 AM »
FBA NEC CPU is pre MAME 123 as it doesnt have the op-code fixes to make Risky Challenge playable so maybe the Irem drivers
On older FBA versions. The more recent ones have the opcode fixes. (it's pretty much a completely new core)


Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: Need some help with my libretro port
« Reply #66 on: September 12, 2015, 09:42:30 AM »
On older FBA versions. The more recent ones have the opcode fixes. (it's pretty much a completely new core)

Ok Nice one i never knew that i guess i know what i'll be doing this weekend ;)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Need some help with my libretro port
« Reply #67 on: September 12, 2015, 09:52:32 AM »
Ok Nice one i never knew that i guess i know what i'll be doing this weekend ;)
It makes things veeery slow on the xbox. I think someone tried to port it over before.  The newer nec core gives sound to some of the toaplan games too.


Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: Need some help with my libretro port
« Reply #68 on: September 12, 2015, 10:07:53 AM »
It makes things veeery slow on the xbox. I think someone tried to port it over before.  The newer nec core gives sound to some of the toaplan games too.

We have this in FBL already big fella as we got sound in those Toaplan games Like Dogyunn Batsugun V-Five Knuckle Bash etc etc
With regards to Risky Challenge it's not good in FBA it must still be missing those CPU Op-code changes required no big deal im just
shooting the breeze here but if your curious check the intro level then just take a peek at level 1 in MAME and you'll see what i mean

https://www.youtube.com/watch?v=NVUb0kD1P5A
« Last Edit: September 12, 2015, 10:23:57 AM by gamez fan »

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1091
  • Karma: +59/-1
  • Helper
Re: Need some help with my libretro port
« Reply #69 on: September 13, 2015, 09:00:40 AM »
Anyway i dont think the Irem games are the problem i think it's more likely a FBA compatability issue on the Platform your porting to.
What do you mean ? FBA-libretro is working fine on rpi2, except for those 3 irem boards and a few cpu intensive games.

Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: Need some help with my libretro port
« Reply #70 on: September 13, 2015, 09:14:59 AM »
What do you mean ? FBA-libretro is working fine on rpi2, except for those 3 irem boards and a few cpu intensive games.

Well those 3 Irem boards etc etc work in FBA they also work in the xbox FBA port so surely the problem is on the platform
your porting it to eg RPI2 or your libretro interface what else can it be..???
« Last Edit: September 13, 2015, 09:27:13 AM by gamez fan »

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1091
  • Karma: +59/-1
  • Helper
Re: Need some help with my libretro port
« Reply #71 on: September 13, 2015, 12:10:48 PM »
Sure, but since it only affects irem games, that's a platform issue on a specific driver, so the issue should be in irem drivers.

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: Need some help with my libretro port
« Reply #72 on: September 13, 2015, 02:19:09 PM »
I'm curious to know if theres another non-pc system that FBA is ported to that has irem drivers working, I also wonder if there is a way to see if the cpu is doing anything at all, like by checking and logging the memory reads / writes on windows and rpi2, then compare the first couple of each.

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: Need some help with my libretro port
« Reply #73 on: September 13, 2015, 02:36:20 PM »
to help rule out/in the nec cpu, please try some other nec v2x/v3x games and see if they have problems similar to irem.
try: pre90s/d_dynduke.cpp, pst90s/d_raiden.cpp, and d_raiden2.cpp and let us know.

best regards,
- dink

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1091
  • Karma: +59/-1
  • Helper
Re: Need some help with my libretro port
« Reply #74 on: September 13, 2015, 03:42:36 PM »
All those games have problems :
-> dynduke games froze on first screen (white with some writings on top-right)
-> raiden 1 games blinked white and black
-> raiden 2 games froze on a black screen (and unlike the other 2, my rpi2 seemed irresponsive for a few seconds)