diff options
| author | 2018-03-28 05:25:15 +1100 | |
|---|---|---|
| committer | 2018-03-28 05:25:15 +1100 | |
| commit | 010155a3c51aa80dcf736b52ec89ffd890f795ef (patch) | |
| tree | a732be4076a467e5dc25f088f9296544f364f858 /src/tools/unidasm.cpp | |
| parent | 703564beccc92a6b6b33ab9562732a4e7ceaae8d (diff) | |
Reshuffle some stuff:
* Move around the debugger hooks to get a small but measurable performance increase
* Remove emucore from external tools
* Improve performance of DSP16 interpreter a little by generating six variants of execution loop
Diffstat (limited to 'src/tools/unidasm.cpp')
| -rw-r--r-- | src/tools/unidasm.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/unidasm.cpp b/src/tools/unidasm.cpp index 5d8044573ed..72c6f01d876 100644 --- a/src/tools/unidasm.cpp +++ b/src/tools/unidasm.cpp @@ -10,9 +10,6 @@ #include "emu.h" -#include <algorithm> -#include <cstring> - #include <ctype.h> #include "cpu/8x300/8x300dasm.h" @@ -150,6 +147,10 @@ #include "cpu/z80/z80dasm.h" #include "cpu/z8000/8000dasm.h" +#include <algorithm> +#include <cstring> +#include <stdexcept> + // Configuration classes // Selected through dasm name @@ -532,7 +533,7 @@ unidasm_data_buffer::unidasm_data_buffer(util::disasm_interface *_disasm, const if(flags & util::disasm_interface::NONLINEAR_PC) { switch(entry->pcshift) { case -1: - lr8 = [](offs_t pc) -> u8 { throw emu_fatalerror("debug_disasm_buffer::debug_data_buffer: r8 access on 16-bits granularity bus\n"); }; + lr8 = [](offs_t pc) -> u8 { throw std::logic_error("debug_disasm_buffer::debug_data_buffer: r8 access on 16-bits granularity bus\n"); }; lr16 = [this](offs_t pc) -> u16 { const u16 *src = get_ptr<u16>(pc); return src[0]; |
