diff options
Diffstat (limited to 'src/mame/machine/bfm_comn.cpp')
-rw-r--r-- | src/mame/machine/bfm_comn.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/machine/bfm_comn.cpp b/src/mame/machine/bfm_comn.cpp index 1faa709b40a..dd381a9b0d9 100644 --- a/src/mame/machine/bfm_comn.cpp +++ b/src/mame/machine/bfm_comn.cpp @@ -4,14 +4,14 @@ #include "emu.h" -static const UINT16 AddressDecode[]= +static const uint16_t AddressDecode[]= { 0x0800,0x1000,0x0001,0x0004,0x0008,0x0020,0x0080,0x0200, 0x0100,0x0040,0x0002,0x0010,0x0400,0x2000,0x4000,0x8000, 0 }; -static const UINT8 DataDecode[]= +static const uint8_t DataDecode[]= { 0x02,0x08,0x20,0x40,0x10,0x04,0x01,0x80, 0 @@ -19,24 +19,24 @@ static const UINT8 DataDecode[]= /////////////////////////////////////////////////////////////////////////// -void bfm_decode_mainrom(running_machine &machine, const char *rom_region, UINT8* codec_data) +void bfm_decode_mainrom(running_machine &machine, const char *rom_region, uint8_t* codec_data) { - UINT8 *rom; + uint8_t *rom; rom = machine.root_device().memregion(rom_region)->base(); { - std::vector<UINT8> tmp(0x10000); + std::vector<uint8_t> tmp(0x10000); int i; memcpy(&tmp[0], rom, 0x10000); for ( i = 0; i < 256; i++ ) { - UINT8 data,pattern,newdata,*tab; + uint8_t data,pattern,newdata,*tab; data = i; - tab = (UINT8*)DataDecode; + tab = (uint8_t*)DataDecode; pattern = 0x01; newdata = 0; @@ -52,9 +52,9 @@ void bfm_decode_mainrom(running_machine &machine, const char *rom_region, UINT8* for ( int address = 0; address < 0x10000; address++) { int newaddress,pattern; - UINT16 *tab; + uint16_t *tab; - tab = (UINT16*)AddressDecode; + tab = (uint16_t*)AddressDecode; pattern = 0x0001; newaddress = 0; do |