summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/h83002/h8_8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/h83002/h8_8.c')
-rw-r--r--src/emu/cpu/h83002/h8_8.c8
1 files changed, 4 insertions, 4 deletions
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