From 0d668ddbd64eefff7b75bd54cca200125159f339 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 26 Apr 2023 01:55:59 -0400 Subject: Fix one ) placement, fix exception condition --- cpu/instructions/opcode.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/instructions/opcode.txt b/cpu/instructions/opcode.txt index 16cdbd3..607fa6c 100644 --- a/cpu/instructions/opcode.txt +++ b/cpu/instructions/opcode.txt @@ -4,7 +4,7 @@ Binary format: is_conditional: n: number of bits in first parameter - s: minimum number of bits required to represent (number of bits for current mode)-1 + s: minimum number of bits required to represent (number of bits for current mode - 1) /: integer division Appends 2 parameters to the normal parameter list for the instruction: @@ -23,5 +23,5 @@ is_conditional: Conditional instructions will never set flags, if a conditional instruction references another, it will always be based on null flags Exceptions: - If s > n: + If (s+2) > n: TODO: make exception list -- cgit v1.2.3