diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/wpc_dcs.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/drivers/wpc_dcs.cpp')
-rw-r--r-- | src/mame/drivers/wpc_dcs.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/wpc_dcs.cpp b/src/mame/drivers/wpc_dcs.cpp index 1b7dff30a28..46956e32f69 100644 --- a/src/mame/drivers/wpc_dcs.cpp +++ b/src/mame/drivers/wpc_dcs.cpp @@ -57,7 +57,7 @@ protected: required_device<cpu_device> maincpu; required_device<dcs_audio_8k_device> dcs; required_memory_bank rombank; - required_shared_ptr<UINT8> mainram; + required_shared_ptr<uint8_t> mainram; required_device<nvram_device> nvram; required_device<wpc_lamp_device> lamp; required_device<wpc_out_device> out; @@ -67,8 +67,8 @@ protected: virtual void machine_reset() override; private: - UINT8 firq_src, zc, switch_col; - UINT16 rtc_base_day; + uint8_t firq_src, zc, switch_col; + uint16_t rtc_base_day; }; static ADDRESS_MAP_START( wpc_dcs_map, AS_PROGRAM, 8, wpc_dcs_state ) @@ -132,7 +132,7 @@ WRITE8_MEMBER(wpc_dcs_state::dcs_reset_w) READ8_MEMBER(wpc_dcs_state::switches_r) { - UINT8 res = 0xff; + uint8_t res = 0xff; for(int i=0; i<8; i++) if(switch_col & (1 << i)) res &= swarray[i]->read(); @@ -152,9 +152,9 @@ READ8_MEMBER(wpc_dcs_state::rtc_r) // This may get wonky if the game is running on year change. Find // something better to do at that time. - UINT8 day = (systime.local_time.day - rtc_base_day) & 31; - UINT8 hour = systime.local_time.hour; - UINT8 min = systime.local_time.minute; + uint8_t day = (systime.local_time.day - rtc_base_day) & 31; + uint8_t hour = systime.local_time.hour; + uint8_t min = systime.local_time.minute; switch(offset) { case 0: @@ -173,7 +173,7 @@ READ8_MEMBER(wpc_dcs_state::firq_src_r) READ8_MEMBER(wpc_dcs_state::zc_r) { - UINT8 res = zc; + uint8_t res = zc; zc &= 0x7f; return res; } @@ -229,7 +229,7 @@ void wpc_dcs_state::machine_reset() mainram[0x1804] = systime.local_time.weekday+1; mainram[0x1805] = 0; mainram[0x1806] = 1; - UINT16 checksum = 0; + uint16_t checksum = 0; for(int i=0x1800; i<=0x1806; i++) checksum += mainram[i]; checksum = ~checksum; |