From 4a96b659ff1dc16b78ba5fc607d49276b6d76c2a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 9 Jul 2019 17:52:05 -0700 Subject: . Stop dumping huge traces on error. We can always rerun with --trace. Though perhaps we should just dump the trace automatically on error. Not bothering thinking about that right now. --- subx/010---vm.cc | 7 +------ subx/013direct_addressing.cc | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'subx') diff --git a/subx/010---vm.cc b/subx/010---vm.cc index 18f69035..de8d51b1 100644 --- a/subx/010---vm.cc +++ b/subx/010---vm.cc @@ -203,6 +203,7 @@ 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' << end(); + exit(1); } return result; } @@ -293,7 +294,6 @@ void run_one_instruction() { // End Two-Byte Opcodes Starting With 0f default: cerr << "unrecognized second opcode after 0f: " << HEXBYTE << NUM(op2) << '\n'; - DUMP(""); exit(1); } break; @@ -305,13 +305,11 @@ void run_one_instruction() { // End Three-Byte Opcodes Starting With f2 0f default: cerr << "unrecognized third opcode after f2 0f: " << HEXBYTE << NUM(op3) << '\n'; - DUMP(""); exit(1); } break; default: cerr << "unrecognized second opcode after f2: " << HEXBYTE << NUM(op2) << '\n'; - DUMP(""); exit(1); } break; @@ -323,19 +321,16 @@ void run_one_instruction() { // End Three-Byte Opcodes Starting With f3 0f default: cerr << "unrecognized third opcode after f3 0f: " << HEXBYTE << NUM(op3) << '\n'; - DUMP(""); exit(1); } break; default: cerr << "unrecognized second opcode after f3: " << HEXBYTE << NUM(op2) << '\n'; - DUMP(""); exit(1); } break; default: cerr << "unrecognized opcode: " << HEXBYTE << NUM(op) << '\n'; - DUMP(""); exit(1); } } diff --git a/subx/013direct_addressing.cc b/subx/013direct_addressing.cc index ca76acfb..513cb61b 100644 --- a/subx/013direct_addressing.cc +++ b/subx/013direct_addressing.cc @@ -1103,7 +1103,6 @@ case 0xff: { } default: cerr << "unrecognized subop for ff: " << HEXBYTE << NUM(subop) << '\n'; - DUMP(""); exit(1); // End Op ff Subops } -- cgit 1.4.1-2-gfad0 ect>
path: root/subx/034discourage_raw_hex.cc
blob: 2b2e26751a7d7cbf9f833d2b82750217a9ce7113 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36