diff options
Diffstat (limited to 'src/mame/machine/mathbox.cpp')
-rw-r--r-- | src/mame/machine/mathbox.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/machine/mathbox.cpp b/src/mame/machine/mathbox.cpp index 7b014ed1158..8fbd86f077d 100644 --- a/src/mame/machine/mathbox.cpp +++ b/src/mame/machine/mathbox.cpp @@ -39,7 +39,7 @@ const device_type MATHBOX = &device_creator<mathbox_device>; -mathbox_device::mathbox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +mathbox_device::mathbox_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, MATHBOX, "Atari MATHBOX", tag, owner, clock, "mathbox", __FILE__) { } @@ -72,14 +72,14 @@ void mathbox_device::device_start() void mathbox_device::device_reset() { m_result = 0; - memset(m_reg, 0, sizeof(INT16)*16); + memset(m_reg, 0, sizeof(int16_t)*16); } WRITE8_MEMBER( mathbox_device::go_w ) { - INT32 mb_temp; /* temp 32-bit multiply results */ - INT16 mb_q; /* temp used in division */ + int32_t mb_temp; /* temp 32-bit multiply results */ + int16_t mb_q; /* temp used in division */ int msb; LOG(("math box command %02x data %02x ", offset, data)); @@ -122,17 +122,17 @@ WRITE8_MEMBER( mathbox_device::go_w ) REG5 = (REG5 & 0x00ff) | (data << 8); - REGf = (INT16)0xffff; + REGf = (int16_t)0xffff; REG4 -= REG2; REG5 -= REG3; step_048: - mb_temp = ((INT32) REG0) * ((INT32) REG4); + mb_temp = ((int32_t) REG0) * ((int32_t) REG4); REGc = mb_temp >> 16; REGe = mb_temp & 0xffff; - mb_temp = ((INT32) -REG1) * ((INT32) REG5); + mb_temp = ((int32_t) -REG1) * ((int32_t) REG5); REG7 = mb_temp >> 16; mb_q = mb_temp & 0xffff; @@ -156,11 +156,11 @@ WRITE8_MEMBER( mathbox_device::go_w ) case 0x12: - mb_temp = ((INT32) REG1) * ((INT32) REG4); + mb_temp = ((int32_t) REG1) * ((int32_t) REG4); REGc = mb_temp >> 16; REG9 = mb_temp & 0xffff; - mb_temp = ((INT32) REG0) * ((INT32) REG5); + mb_temp = ((int32_t) REG0) * ((int32_t) REG5); REG8 = mb_temp >> 16; mb_q = mb_temp & 0xffff; |