From dec6002a4ddbce5c98cebda522d953f5f79feb96 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Sun, 9 Jan 2022 21:22:34 +0100 Subject: [PATCH] Handle invalid instructions Just in case. --- new/src/tools/exec/dis.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/new/src/tools/exec/dis.cpp b/new/src/tools/exec/dis.cpp index 4265c0d1b..f405d60e2 100644 --- a/new/src/tools/exec/dis.cpp +++ b/new/src/tools/exec/dis.cpp @@ -228,9 +228,9 @@ auto main(int argc, char* argv[]) -> int case R: std::cout << viua::arch::ops::R::decode(ip).to_string(); break; - /* default: */ - /* std::cout << "; " << std::string(16, '^') << " invalid instruction"; */ - /* break; */ + default: + std::cout << "; " << std::string(16, '^') << " invalid instruction"; + break; } std::cout << "\n"; } -- 2.34.2