diff options
| author | 2017-03-16 22:32:44 +0300 | |
|---|---|---|
| committer | 2017-03-16 22:34:04 +0300 | |
| commit | c2817ded96a9c7e3a446f1546d07633639d9abb6 (patch) | |
| tree | 36338ee7cdfd12ee88ea9b3594b4798d5d7258ab /src/emu/debug/debugcpu.cpp | |
| parent | 356ccfb017a34f8f3c33d8ff1e772e5182c673f8 (diff) | |
debugger: print octal addresses in the trace if CPU is octal.
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
| -rw-r--r-- | src/emu/debug/debugcpu.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 957834ec831..ecd4996b320 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -3318,7 +3318,14 @@ void device_debug::tracer::update(offs_t pc) // print the address std::string buffer; int logaddrchars = m_debug.logaddrchars(); - buffer = string_format("%0*X: ", logaddrchars, pc); + if (m_debug.is_octal()) + { + buffer = string_format("%0*o: ", logaddrchars*3/2, pc); + } + else + { + buffer = string_format("%0*X: ", logaddrchars, pc); + } // print the disassembly std::string dasm; |
