diff options
author | Roberto Zandona <robertoz@mamedev.org> | 2009-08-02 17:19:04 +0000 |
---|---|---|
committer | Roberto Zandona <robertoz@mamedev.org> | 2009-08-02 17:19:04 +0000 |
commit | cd8369e0eece2304a3fcb56be4e550deb6a2f658 (patch) | |
tree | bbf4c551d51b203c7b9bfee86195dcc7db39c306 | |
parent | c2f590cf7d46a1d15ff5eeea7a6e878c20345f8a (diff) |
progolfa: removed a unnecessary for
-rw-r--r-- | src/mame/drivers/progolf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/progolf.c b/src/mame/drivers/progolf.c index 61e0050321a..b29b67723a3 100644 --- a/src/mame/drivers/progolf.c +++ b/src/mame/drivers/progolf.c @@ -524,12 +524,12 @@ static DRIVER_INIT( progolfa ) memory_set_decrypted_region(space,0x0000,0xffff, decrypted); - for (A = 0x0000;A < 0x10000;A++) - decrypted[A] = rom[A]; - - /* TODO: data is likely to not be encrypted, just the opcodes are. */ - for (A = 0x0001 ; A < 0x10000 ; A += 2) - decrypted[A] = BITSWAP8(rom[A],6,4,7,5,3,2,1,0); + /* data is likely to not be encrypted, just the opcodes are. */ + for (A = 0x0000 ; A < 0x10000 ; A++) + if (A & 1) + decrypted[A] = BITSWAP8(rom[A],6,4,7,5,3,2,1,0); + else + decrypted[A] = rom[A]; } /* Maybe progolf is a bootleg? progolfa uses DECO CPU-6 as custom module CPU (the same as Zoar) */ |