MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

AWJ
Reged: 03/08/05
Posts: 936
Loc: Ottawa, Ontario
Send PM
Re: mame 0.163 on ARM32 - raiden2 issue
08/07/15 02:56 PM


> does the r2dx_v33_r2 set work properly? it has entirely different protection.
>
> you're probably on your own for debugging the main set tho.. it really sounds like an
> endian issue, but like RB said, I thought the endian on the ARM chips was the same as
> a PC.

Adding to that, I'm quite sure raiden2.c does work on PowerPC, which is opposite-endian to Intel. I distinctly remember fixing it for MacBox360 (and the problems were in the ROM loading and sprite decryption, the protection code was just fine)

Maybe the ARM compiler does int-float casting in a different way and it's causing an integer overflow to occur somewhere that doesn't occur on Intel (e.g. by doing a float conversion after a multiplication instead of before it) Remember that signed integer overflow is undefined behaviour in C/C++; it's quite legal for one compiler to do the conversion before multiplication and another to do the conversion after, depending on which is faster on a given architecture.

On a related note one of the Yamaha FM chips doesn't work properly on PowerPC builds, and it's probably not endian-related per se because the code never casts between different integer sizes. It does, however, cast back and forth between ints and doubles all over the place just like raiden2cop.c does.







Entire thread
Subject Posted by Posted on
* mame 0.163 on ARM32 - raiden2 issue ole 08/04/15 12:38 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue R. Belmont  08/04/15 04:47 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/04/15 11:08 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue Haze  08/04/15 11:30 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/05/15 11:18 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue Haze  08/07/15 03:44 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/07/15 10:32 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue AWJ  08/07/15 02:56 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/07/15 10:36 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue FIXED! ole  08/08/15 01:33 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue FIXED! AWJ  08/08/15 03:36 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue FIXED! ole  08/09/15 01:04 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue Haze  08/04/15 01:11 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 39 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2762