diff options
Diffstat (limited to 'src/mame/pacman/jumpshot.cpp')
-rw-r--r-- | src/mame/pacman/jumpshot.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mame/pacman/jumpshot.cpp b/src/mame/pacman/jumpshot.cpp index d140bf145d0..30f1be811f0 100644 --- a/src/mame/pacman/jumpshot.cpp +++ b/src/mame/pacman/jumpshot.cpp @@ -23,7 +23,6 @@ uint8_t pacman_state::jumpshot_decrypt(int addr, uint8_t e) uint32_t method = 0; const uint8_t *tbl; - /* pick method from bits 0 2 5 7 9 of the address */ method = picktable[ (addr & 0x001) | @@ -43,14 +42,10 @@ uint8_t pacman_state::jumpshot_decrypt(int addr, uint8_t e) void pacman_state::jumpshot_decode() { - int i; - uint8_t *RAM; - /* CPU ROMs */ - - RAM = memregion("maincpu")->base(); - for (i = 0; i < 0x4000; i++) + uint8_t *ROM = memregion("maincpu")->base(); + for (int i = 0; i < 0x4000; i++) { - RAM[i] = jumpshot_decrypt(i,RAM[i]); + ROM[i] = jumpshot_decrypt(i, ROM[i]); } } |