mirror of
https://github.com/holub/mame
synced 2025-10-07 09:25:34 +03:00
Make debugger dump command work with unaligned addresses
This commit is contained in:
parent
6779e6df20
commit
f3d19e977c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user