diff options
Diffstat (limited to 'src/devices/bus/neogeo/prot_pcm2.cpp')
-rw-r--r-- | src/devices/bus/neogeo/prot_pcm2.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/bus/neogeo/prot_pcm2.cpp b/src/devices/bus/neogeo/prot_pcm2.cpp index 2417075509a..36d5557d817 100644 --- a/src/devices/bus/neogeo/prot_pcm2.cpp +++ b/src/devices/bus/neogeo/prot_pcm2.cpp @@ -9,7 +9,7 @@ extern const device_type PCM2_PROT = &device_creator<pcm2_prot_device>; -pcm2_prot_device::pcm2_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +pcm2_prot_device::pcm2_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PCM2_PROT, "Neo Geo NEOPCM2 Protection", tag, owner, clock, "pcm2_prot", __FILE__) { } @@ -32,16 +32,16 @@ NeoGeo 'V' (PCM) ROM encryption ***************************************************************************/ // Neo-Pcm2 Drivers for Encrypted V Roms -void pcm2_prot_device::decrypt(UINT8* ymrom, UINT32 ymsize, int value) +void pcm2_prot_device::decrypt(uint8_t* ymrom, uint32_t ymsize, int value) { // thanks to Elsemi for the NEO-PCM2 info - UINT16 *rom = (UINT16 *)ymrom; + uint16_t *rom = (uint16_t *)ymrom; int size = ymsize; if (rom != nullptr) { // swap address lines on the whole ROMs - std::vector<UINT16> buffer(value / 2); + std::vector<uint16_t> buffer(value / 2); for (int i = 0; i < size / 2; i += (value / 2)) { @@ -56,9 +56,9 @@ void pcm2_prot_device::decrypt(UINT8* ymrom, UINT32 ymsize, int value) // the later PCM2 games have additional scrambling -void pcm2_prot_device::swap(UINT8* ymrom, UINT32 ymsize, int value) +void pcm2_prot_device::swap(uint8_t* ymrom, uint32_t ymsize, int value) { - static const UINT32 addrs[7][2]={ + static const uint32_t addrs[7][2]={ {0x000000,0xa5000}, {0xffce20,0x01000}, {0xfe2cf6,0x4e001}, @@ -66,7 +66,7 @@ void pcm2_prot_device::swap(UINT8* ymrom, UINT32 ymsize, int value) {0xfeb2c0,0x0a000}, {0xff14ea,0xa7001}, {0xffb440,0x02000}}; - static const UINT8 xordata[7][8]={ + static const uint8_t xordata[7][8]={ {0xf9,0xe0,0x5d,0xf3,0xea,0x92,0xbe,0xef}, {0xc4,0x83,0xa8,0x5f,0x21,0x27,0x64,0xaf}, {0xc3,0xfd,0x81,0xac,0x6d,0xe7,0xbf,0x9e}, @@ -75,9 +75,9 @@ void pcm2_prot_device::swap(UINT8* ymrom, UINT32 ymsize, int value) {0x4b,0xa4,0x63,0x46,0xf0,0x91,0xea,0x62}, {0x4b,0xa4,0x63,0x46,0xf0,0x91,0xea,0x62}}; - std::vector<UINT8> buf(0x1000000); + std::vector<uint8_t> buf(0x1000000); int j, d; - UINT8* src = ymrom; + uint8_t* src = ymrom; memcpy(&buf[0], src, 0x1000000); for (int i = 0; i < 0x1000000; i++) |