diff options
-rw-r--r-- | src/emu/cpu/apexc/apexcdsm.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/pdp1/pdp1dasm.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/pdp1/tx0dasm.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/apexc/apexcdsm.c b/src/emu/cpu/apexc/apexcdsm.c index 280e183745c..c62f39af22c 100644 --- a/src/emu/cpu/apexc/apexcdsm.c +++ b/src/emu/cpu/apexc/apexcdsm.c @@ -82,7 +82,7 @@ CPU_DISASSEMBLE( apexc ) char mnemonic[9]; /* storage for generated mnemonic */ /* read the instruction to disassemble */ - instruction = *((UINT32 *) oprom); + instruction = oprom[0] << 24 | oprom[1] << 16 | oprom[2] << 8 | oprom[3]; /* isolate the instruction fields */ x = (instruction >> 22) & 0x3FF; diff --git a/src/emu/cpu/pdp1/pdp1dasm.c b/src/emu/cpu/pdp1/pdp1dasm.c index 05e5e8eaac5..a712484537d 100644 --- a/src/emu/cpu/pdp1/pdp1dasm.c +++ b/src/emu/cpu/pdp1/pdp1dasm.c @@ -23,7 +23,7 @@ CPU_DISASSEMBLE( pdp1 ) int md; //int etime = 0; - md = *((UINT32 *) oprom); + md = oprom[0] << 24 | oprom[1] << 16 | oprom[2] << 8 | oprom[3]; y = md & 07777; ib = (md >> 12) & 1; /* */ diff --git a/src/emu/cpu/pdp1/tx0dasm.c b/src/emu/cpu/pdp1/tx0dasm.c index e05c35d6ec8..cbffead5fe8 100644 --- a/src/emu/cpu/pdp1/tx0dasm.c +++ b/src/emu/cpu/pdp1/tx0dasm.c @@ -6,7 +6,7 @@ CPU_DISASSEMBLE( tx0_64kw ) int md; int x; - md = *((UINT32 *) oprom); + md = oprom[0] << 24 | oprom[1] << 16 | oprom[2] << 8 | oprom[3]; x = md & 0177777; switch (md >> 16) @@ -32,7 +32,7 @@ CPU_DISASSEMBLE( tx0_8kw ) int md; int x; - md = *((UINT32 *) oprom); + md = oprom[0] << 24 | oprom[1] << 16 | oprom[2] << 8 | oprom[3]; x = md & 0017777; switch (md >> 13) |