diff options
Diffstat (limited to 'subx/010---vm.cc')
-rw-r--r-- | subx/010---vm.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc index 6ee41c9b..b54dd9d5 100644 --- a/subx/010---vm.cc +++ b/subx/010---vm.cc @@ -202,7 +202,9 @@ inline uint8_t* mem_addr_u8(uint32_t addr) { } if (result == NULL) { if (Trace_file) Trace_file.flush(); - raise << "Tried to access uninitialized memory at address 0x" << HEXWORD << addr << '\n' << die(); + raise << "Tried to access uninitialized memory at address 0x" << HEXWORD << addr << '\n' << end(); + DUMP(""); + exit(1); } return result; } @@ -222,6 +224,8 @@ inline uint32_t* mem_addr_u32(uint32_t addr) { if (Trace_file) Trace_file.flush(); raise << "Tried to access uninitialized memory at address 0x" << HEXWORD << addr << '\n' << end(); raise << "The entire 4-byte word should be initialized and lie in a single segment.\n" << end(); + DUMP(""); + exit(1); } return result; } |