diff options
author | Aaron Giles <aaron@aarongiles.com> | 2009-09-24 07:14:58 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2009-09-24 07:14:58 +0000 |
commit | d8aa6627f5f9d114169332a6fcca853d207210d9 (patch) | |
tree | 6b0ae141d426822084471169e6ab1caa15224c8e /src/mame/drivers/namcos23.c | |
parent | a97ca90b366e1b0fef34a203f67569cf2ba93600 (diff) |
> -----Original Message-----
> From: Atari Ace [mailto:atari_ace@verizon.net]
> Sent: Sunday, September 20, 2009 9:54 AM
> To: submit@mamedev.org
> Cc: atariace@hotmail.com
> Subject: [patch] Eliminate more #ifdef LSB_FIRST
>
> Hi mamedev,
>
> This patch recodes more cases where LSB_FIRST is used to conditionally
> compile separate code for LSB and MSB targets. The atari.h chunk was
> dead code (both in MAME and MESS) so I simply removed it.
>
> ~aa
Diffstat (limited to 'src/mame/drivers/namcos23.c')
-rw-r--r-- | src/mame/drivers/namcos23.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c index 57f7073a778..ed036f6d71d 100644 --- a/src/mame/drivers/namcos23.c +++ b/src/mame/drivers/namcos23.c @@ -1353,17 +1353,16 @@ static DRIVER_INIT(ss23) namcos23_jvssense = 1; } +#define XOR(a) WORD2_XOR_BE(a) + static const gfx_layout namcos23_cg_layout = { 16,16, 0x400, /* 0x3c0 */ 4, { 0,1,2,3 }, -#ifdef LSB_FIRST - { 4*6,4*7,4*4,4*5,4*2,4*3,4*0,4*1,4*14,4*15,4*12,4*13,4*10,4*11,4*8,4*9 }, -#else - { 4*0,4*1,4*2,4*3,4*4,4*5,4*6,4*7,4*8,4*9,4*10,4*11,4*12,4*13,4*14,4*15 }, -#endif + { XOR(0)*4, XOR(1)*4, XOR(2)*4, XOR(3)*4, XOR(4)*4, XOR(5)*4, XOR(6)*4, XOR(7)*4, + XOR(8)*4, XOR(9)*4, XOR(10)*4, XOR(11)*4, XOR(12)*4, XOR(13)*4, XOR(14)*4, XOR(15)*4 }, { 64*0,64*1,64*2,64*3,64*4,64*5,64*6,64*7,64*8,64*9,64*10,64*11,64*12,64*13,64*14,64*15 }, 64*16 }; /* cg_layout */ |