summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/deco102.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/deco102.c')
-rw-r--r--src/mame/machine/deco102.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/deco102.c b/src/mame/machine/deco102.c
index ede2d8dd861..1c85dafd908 100644
--- a/src/mame/machine/deco102.c
+++ b/src/mame/machine/deco102.c
@@ -14,11 +14,11 @@ extern void deco102_decrypt(int region, int address_xor, int data_select_xor, in
static UINT16 decrypt(UINT16 data, int address, int select_xor)
{
- static UINT16 xors[16] =
+ static const UINT16 xors[16] =
{
0xb52c,0x2458,0x139a,0xc998,0xce8e,0x5144,0x0429,0xaad4,0xa331,0x3645,0x69a3,0xac64,0x1a53,0x5083,0x4dea,0xd237
};
- static UINT8 bitswaps[16][16] =
+ static const UINT8 bitswaps[16][16] =
{
{ 12,8,13,11,14,10,15,9, 3,2,1,0,4,5,6,7 }, { 10,11,14,12,15,13,8,9, 6,7,5,3,0,4,2,1 },
{ 14,13,15,9,8,12,11,10, 7,4,1,5,6,0,3,2 }, { 15,14,8,9,10,11,13,12, 1,2,7,3,4,6,0,5 },
@@ -30,7 +30,7 @@ static UINT16 decrypt(UINT16 data, int address, int select_xor)
{ 13,8,12,14,11,15,10,9, 7,6,5,4,3,2,1,0 }, { 15,14,13,12,11,10,9,8, 0,6,7,4,3,2,1,5 }
};
int j, xor;
- UINT8 *bs;
+ const UINT8 *bs;
// calculate bitswap to use
j = ((address ^ select_xor) & 0xf0) >> 4;