Author Topic: FBAlpha Big Endian Patches  (Read 31639 times)

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
FBAlpha Big Endian Patches
« on: January 24, 2012, 10:57:52 AM »
Hi guys,

ive been updating from the main code base now. Here are some additional big endian patches that can be applied to the repo. They should apply and not affect win32 builds in anyway. If we could get these updated in SVN it would save me a ton of headaches :)

there are more to come but i will get started here

cheers!


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #1 on: January 24, 2012, 12:16:02 PM »
minor capcom big endian palette update


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #2 on: January 24, 2012, 01:40:03 PM »
cave big endian


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #3 on: January 24, 2012, 04:23:27 PM »
cps3run big endian fixes


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: FBAlpha Big Endian Patches
« Reply #4 on: January 24, 2012, 04:29:52 PM »
Thanks lantus, as you've probably seen, all these have been merged into the repo.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #5 on: January 24, 2012, 04:39:37 PM »
thanks for that. Ill keep them coming. The misc drivers are the painful ones to deal with =)

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: FBAlpha Big Endian Patches
« Reply #6 on: January 24, 2012, 04:48:39 PM »
thanks for that. Ill keep them coming. The misc drivers are the painful ones to deal with =)

Yeah, but at least now they'll get integrated into the tree. :)
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #7 on: January 24, 2012, 08:36:32 PM »
irem driver endian fixes
nec/vez cpu endian fixes

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: FBAlpha Big Endian Patches
« Reply #8 on: January 25, 2012, 04:12:40 PM »
Thanks lantus, I applied the patches to the repo.

I moved the LSB_FIRST define from burnint.h to a makefile flag, since burnint.h isn't always used by cpu cores.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #9 on: January 25, 2012, 11:42:33 PM »
thanks Treble. That makes life easier for me as i now wont need to comment out the #define in burnint.h each time

some psykio endian updates (d_psykio4.cpp/d_psykiosh.cpp)


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #10 on: January 26, 2012, 02:40:15 PM »
megadrive bigendian updates

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: FBAlpha Big Endian Patches
« Reply #11 on: January 26, 2012, 03:58:50 PM »
Thanks lantus, the repo is up-to-date with the patches again.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #12 on: January 28, 2012, 12:47:12 AM »
pgm big endian


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: FBAlpha Big Endian Patches
« Reply #13 on: January 28, 2012, 04:45:42 AM »
pgm big endian

Thanks lantus - applied again.

Would this;

Code: [Select]
- if (gptr[i] == (0xffff - i)) gptr[i] = 0x4e75;
+ if (gptr[i] == (0xffff - i))
+ {
+#ifdef LSB_FIRST
+                            gptr[i] = 0x4e75;
+#else
+                            gptr[i] = 0x754e;
+#endif
+ }
+

not be better as;

Code: [Select]
- if (gptr[i] == (0xffff - i)) gptr[i] = 0x4e75;
+ if (gptr[i] == (0xffff - i)) gptr[i] = (BURN_SWAP_ENDIAN_INT16(0x4e75);

?
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: FBAlpha Big Endian Patches
« Reply #14 on: January 28, 2012, 01:42:54 PM »
it would be, go ahead and change that if you like. thats what late night coding does :)