Skip to content

Commit

Permalink
add NOT operation using the ~ key
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowcandle committed May 18, 2019
1 parent 9cc8218 commit a3b219b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3b219b

Please sign in to comment.