From 8ef06a7e1adf83c2a4a5a2c3284e9ada9e336727 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 24 Dec 2022 01:34:16 -0700 Subject: [PATCH] Technically there are two valid NOPs --- src/vm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm.rs b/src/vm.rs index 14beb69..6bc21b9 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -139,8 +139,8 @@ impl Uxn { // The value of PC is defined to be the value of the NEXT pc ala Mips self.pc += 1; - // Short circuit for fast NOP - if icode == Icode::NOP { + // Short circuit for cheap NOPs (POPk, POPkr) + if icode & Icode::NOP == Icode::NOP { return Ok(()); }