From d22317f94f3ae9984ca66c62c180833e382784c5 Mon Sep 17 00:00:00 2001 From: shafu Date: Mon, 27 Jan 2025 17:05:25 +0100 Subject: [PATCH] remove duplicate instructions remove duplicate instructions (STOP, ADD) from instruction table --- crates/interpreter/src/instructions.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/interpreter/src/instructions.rs b/crates/interpreter/src/instructions.rs index 1e6e850706..9830df9586 100644 --- a/crates/interpreter/src/instructions.rs +++ b/crates/interpreter/src/instructions.rs @@ -32,9 +32,6 @@ pub const fn instruction_table( let mut table = [control::unknown as crate::table::Instruction; 256]; table[STOP as usize] = control::stop; - table[ADD as usize] = arithmetic::add; - table[STOP as usize] = control::stop; - table[ADD as usize] = arithmetic::add; table[MUL as usize] = arithmetic::mul; table[SUB as usize] = arithmetic::sub;