diff options
author | 2018-05-14 08:07:56 -0400 | |
---|---|---|
committer | 2018-05-14 08:08:01 -0400 | |
commit | f3d19e977c2f7acf245c9b39ed7d0ff1b5a7ddb2 (patch) | |
tree | cdf2151529ca0172f34199139198e183f8a933cc /src/emu/debug/debugcmd.cpp | |
parent | 6779e6df20d16f20f7cac9c81ef1e3c7c5dcdd49 (diff) |
Make debugger dump command work with unaligned addresses
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 9e10615a28a..3b38f536ef4 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -2044,13 +2044,13 @@ void debugger_commands::execute_dump(int ref, const std::vector<std::string> &pa switch (width) { case 8: - util::stream_format(output, " %016X", space->read_qword(i+j)); + util::stream_format(output, " %016X", space->read_qword_unaligned(i+j)); break; case 4: - util::stream_format(output, " %08X", space->read_dword(i+j)); + util::stream_format(output, " %08X", space->read_dword_unaligned(i+j)); break; case 2: - util::stream_format(output, " %04X", space->read_word(i+j)); + util::stream_format(output, " %04X", space->read_word_unaligned(i+j)); break; case 1: util::stream_format(output, " %02X", space->read_byte(i+j)); @@ -2079,13 +2079,13 @@ void debugger_commands::execute_dump(int ref, const std::vector<std::string> &pa switch (width) { case 8: - data = space->read_qword(i+j); + data = space->read_qword_unaligned(i+j); break; case 4: - data = space->read_dword(i+j); + data = space->read_dword_unaligned(i+j); break; case 2: - data = space->read_word(i+j); + data = space->read_word_unaligned(i+j); break; case 1: data = space->read_byte(i+j); |