Welcome!

FBAlpha Big Endian Patches

lantus · 60 · 46825

Offline lantus

  • Expert
  • *****
    • Posts: 162
    • Karma: +32/-0
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
minor capcom big endian palette update



Offline lantus

  • Expert
  • *****
    • Posts: 162
    • Karma: +32/-0

Offline lantus

  • Expert
  • *****
    • Posts: 162
    • Karma: +32/-0

Offline Barry Harris

  • dontbeabarry
  • *
    • Posts: 1785
    • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
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
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
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
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
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
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

Offline Barry Harris

  • dontbeabarry
  • *
    • Posts: 1785
    • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
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

Offline Barry Harris

  • dontbeabarry
  • *
    • Posts: 1785
    • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
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
it would be, go ahead and change that if you like. thats what late night coding does :)