diff options
author | 2015-03-05 17:09:40 +0100 | |
---|---|---|
committer | 2015-03-05 17:09:40 +0100 | |
commit | 910f26368c6760ee6c11fb6835b4f14cbde6034c (patch) | |
tree | 8608f0d2a2c7f90ef5700d8b5c6e474e61e57847 | |
parent | 57fd44091ac557add4ab54737f4b99146f0329c2 (diff) |
widdle endian
-rw-r--r-- | src/emu/cpu/hmcs40/hmcs40.h | 4 | ||||
-rw-r--r-- | src/emu/cpu/hmcs40/hmcs40d.c | 2 | ||||
-rw-r--r-- | src/tools/unidasm.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/hmcs40/hmcs40.h b/src/emu/cpu/hmcs40/hmcs40.h index c84e1894227..0ff2af82267 100644 --- a/src/emu/cpu/hmcs40/hmcs40.h +++ b/src/emu/cpu/hmcs40/hmcs40.h @@ -26,8 +26,8 @@ public: // construction/destruction hmcs40_cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int stack_levels, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data, const char *shortname, const char *source) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) - , m_program_config("program", ENDIANNESS_BIG, 16, prgwidth, 0, program) - , m_data_config("data", ENDIANNESS_BIG, 8, datawidth, 0, data) + , m_program_config("program", ENDIANNESS_LITTLE, 16, prgwidth, 0, program) + , m_data_config("data", ENDIANNESS_LITTLE, 8, datawidth, 0, data) , m_prgwidth(prgwidth-1) , m_datawidth(datawidth) , m_stack_levels(stack_levels) diff --git a/src/emu/cpu/hmcs40/hmcs40d.c b/src/emu/cpu/hmcs40/hmcs40d.c index f8d11a85140..7a46383359f 100644 --- a/src/emu/cpu/hmcs40/hmcs40d.c +++ b/src/emu/cpu/hmcs40/hmcs40d.c @@ -14,7 +14,7 @@ CPU_DISASSEMBLE(hmcs40) { int pos = 2;//0; -// UINT16 op = ((oprom[pos] << 8) | oprom[pos + 1]) & 0x3ff; +// UINT16 op = (oprom[pos] | oprom[pos + 1] << 8) & 0x3ff; // pos += 2; // UINT8 instr = hmcs40_mnemonic[op]; diff --git a/src/tools/unidasm.c b/src/tools/unidasm.c index 5a1d404d52c..484d1d9047e 100644 --- a/src/tools/unidasm.c +++ b/src/tools/unidasm.c @@ -244,7 +244,7 @@ static const dasm_table_entry dasm_table[] = { "hd6301", _8bit, 0, CPU_DISASSEMBLE_NAME(hd6301) }, { "hd6309", _8bit, 0, CPU_DISASSEMBLE_NAME(hd6309) }, { "hd63701", _8bit, 0, CPU_DISASSEMBLE_NAME(hd63701) }, - { "hmcs40", _16be, 0, CPU_DISASSEMBLE_NAME(hmcs40) }, + { "hmcs40", _16le, 0, CPU_DISASSEMBLE_NAME(hmcs40) }, { "hyperstone", _16be, 0, CPU_DISASSEMBLE_NAME(hyperstone_generic) }, { "i4004", _8bit, 0, CPU_DISASSEMBLE_NAME(i4004) }, { "i8008", _8bit, 0, CPU_DISASSEMBLE_NAME(i8008) }, |