From a3b219b6e558ab57f362f206f6b8441ce9c284c7 Mon Sep 17 00:00:00 2001 From: Ramon Fried Date: Sat, 18 May 2019 22:26:06 +0300 Subject: [PATCH] add NOT operation using the ~ key --- interactive.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interactive.c b/interactive.c index c8c8f7b..13207d3 100644 --- a/interactive.c +++ b/interactive.c @@ -540,6 +540,11 @@ int start_interactive(uint64_t start) set_fields_width(64); paint_screen(); break; + case '~': + unpaint_screen(); + val = ~val & MASK(g_width); + paint_screen(); + break; default: if (view == BINARY_VIEW) process_binary(ch);