diff options
author | Test_User <hax@andrewyu.org> | 2023-04-26 01:55:59 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2023-04-26 01:55:59 -0400 |
commit | 0d668ddbd64eefff7b75bd54cca200125159f339 (patch) | |
tree | 18e414886e72b534133f57a3852b772eec2369e2 | |
parent | 155b6ce38153910808bf2f6a82b775af6b09d0f9 (diff) | |
download | specification-0d668ddbd64eefff7b75bd54cca200125159f339.tar.gz specification-0d668ddbd64eefff7b75bd54cca200125159f339.zip |
Fix one ) placement, fix exception condition
-rw-r--r-- | cpu/instructions/opcode.txt | 4 |
1 files 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 |