From 84ec3084502b8bcd4371f519d1fe889f47a60a6d Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 20 Oct 2019 17:08:32 +0200 Subject: [PATCH] :art: NoOp is a true opcode --- src/vm/vm_code.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/vm/vm_code.c b/src/vm/vm_code.c index 24829335..e56f9035 100644 --- a/src/vm/vm_code.c +++ b/src/vm/vm_code.c @@ -56,10 +56,6 @@ ANN static m_bit* tobytecode(MemPool p, const VM_Code code) { if(instr->opcode < eGack) memcpy(ptr + i*BYTECODE_SZ, instr, BYTECODE_SZ); else { - if(instr->execute == NoOp) { // RegSetImm - memset(ptr + i*BYTECODE_SZ, 0, BYTECODE_SZ); - continue; - } *(m_bit*)(ptr + (i*BYTECODE_SZ)) = instr->opcode; *(Instr*)(ptr + (i*BYTECODE_SZ) + SZ_INT) = instr; *(f_instr*)(ptr + (i*BYTECODE_SZ) + SZ_INT*2) = instr->execute; -- 2.43.0