diff options
| author | 2020-04-13 19:57:13 -0400 | |
|---|---|---|
| committer | 2020-04-13 20:04:25 -0400 | |
| commit | 86e7693df08201e82d06e8f23a77cc5982e3dcd3 (patch) | |
| tree | edee95c1e7f8d65e3201b73338e136ceb2abb352 /src/emu/debug/dvdisasm.cpp | |
| parent | dcf2109120ef5ec5c65ee6e15de46bea1d8f2822 (diff) | |
Make expressions octal for applicable address spaces in disassembly view
debug/express.cpp, debugcpu.cpp: General cleanup (nw)
- Change default base from hardcoded macro to dynamic parameter for parsed_expression
- Change symbol table parameters and variables to references or std::reference_wrapper
- Remove the (unused) ability to construct a parsed_expression without a symbol table
- Eliminate symbol_table &table and void *memory_param arguments from callbacks (superfluous now that std::function can bind everything necessary)
- Eliminate globalref pointer from symbol_table
- Add explicitly defaulted move constructor and move assignment operator
Diffstat (limited to 'src/emu/debug/dvdisasm.cpp')
| -rw-r--r-- | src/emu/debug/dvdisasm.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emu/debug/dvdisasm.cpp b/src/emu/debug/dvdisasm.cpp index 84d228ce3ef..95d72e5cda8 100644 --- a/src/emu/debug/dvdisasm.cpp +++ b/src/emu/debug/dvdisasm.cpp @@ -117,7 +117,11 @@ void debug_view_disasm::view_notify(debug_view_notification type) adjust_visible_y_for_cursor(); else if(type == VIEW_NOTIFY_SOURCE_CHANGED) - m_expression.set_context(&downcast<const debug_view_disasm_source *>(m_source)->device()->debug()->symtable()); + { + const debug_view_disasm_source &source = downcast<const debug_view_disasm_source &>(*m_source); + m_expression.set_context(&source.device()->debug()->symtable()); + m_expression.set_default_base(source.space().is_octal() ? 8 : 16); + } } |
