diff options
Diffstat (limited to 'src/emu/cpu/h83002')
| -rw-r--r-- | src/emu/cpu/h83002/h8_16.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/h83002/h8_8.c | 8 | ||||
| -rw-r--r-- | src/emu/cpu/h83002/h8periph.c | 2 | ||||
| -rw-r--r-- | src/emu/cpu/h83002/h8priv.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/cpu/h83002/h8_16.c b/src/emu/cpu/h83002/h8_16.c index fe715c55750..1cf02227094 100644 --- a/src/emu/cpu/h83002/h8_16.c +++ b/src/emu/cpu/h83002/h8_16.c @@ -545,7 +545,7 @@ ADDRESS_MAP_END CPU_GET_INFO( h8_3002 ) { - h83xx_state *h8 = (device != NULL) ? device->token : NULL; + h83xx_state *h8 = (device != NULL) ? device->token : NULL; switch(state) { // Interface functions and variables diff --git a/src/emu/cpu/h83002/h8_8.c b/src/emu/cpu/h83002/h8_8.c index 76afb3e644d..f4bc54d1566 100644 --- a/src/emu/cpu/h83002/h8_8.c +++ b/src/emu/cpu/h83002/h8_8.c @@ -47,11 +47,11 @@ INLINE void h8_mem_write16(h83xx_state *h8, offs_t address, UINT16 data) INLINE UINT32 h8_mem_read32(h83xx_state *h8, offs_t address) { UINT32 result = memory_read_byte(h8->program, address) << 24; - result |= memory_read_byte(h8->program, address+1) << 16; - result |= memory_read_byte(h8->program, address+2) << 8; + result |= memory_read_byte(h8->program, address+1) << 16; + result |= memory_read_byte(h8->program, address+2) << 8; result |= memory_read_byte(h8->program, address+3); - return result; + return result; } INLINE void h8_mem_write32(h83xx_state *h8, offs_t address, UINT32 data) @@ -521,7 +521,7 @@ ADDRESS_MAP_END CPU_GET_INFO( h8_3334 ) { - h83xx_state *h8 = (device != NULL) ? device->token : NULL; + h83xx_state *h8 = (device != NULL) ? device->token : NULL; switch(state) { // Interface functions and variables diff --git a/src/emu/cpu/h83002/h8periph.c b/src/emu/cpu/h83002/h8periph.c index 0d81936ac62..7a36fd629d1 100644 --- a/src/emu/cpu/h83002/h8periph.c +++ b/src/emu/cpu/h83002/h8periph.c @@ -468,7 +468,7 @@ static void h8itu_3007_timer_expire(h83xx_state *h8, int tnum) { int base = 0x68 + (tnum*8); UINT16 count; - + count = (h8->per_regs[base + 0x2]<<8) | h8->per_regs[base + 0x3]; count++; diff --git a/src/emu/cpu/h83002/h8priv.h b/src/emu/cpu/h83002/h8priv.h index 5607a7d1882..ff112885cb6 100644 --- a/src/emu/cpu/h83002/h8priv.h +++ b/src/emu/cpu/h83002/h8priv.h @@ -16,7 +16,7 @@ struct _h83xx_state UINT32 h8err; UINT32 regs[8]; UINT32 pc, ppc; - + UINT32 h8_IRQrequestH, h8_IRQrequestL; INT32 cyccnt; |
