[bench] vm: bug fix
[calu.git] / 8_benchs / src / vm.s
index 05b98125c4d87e69b3b2b7de0447ec7d470eb6b5..077a5f3a5b220dec41b7a48caa44740c8903a3e6 100644 (file)
@@ -213,6 +213,8 @@ vm_jmp:
        addideq r2, r2, 1
        breq+ vm_loop
        ;if != 0
+       ;set r6 to 0 (to clear upper bytes)
+       ldis r6, 0
        ;load pc+1 input
        ldb r6, 1(r4)
        ;compare input with neg. max of 8 bit