From 9d1465f1c859ca97517c26f4bf751b682ec337e9 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 15 Feb 2023 22:13:16 -0500 Subject: Use parameter size, not current CPU mode --- cpu/instructions/opcode.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpu/instructions/opcode.txt') diff --git a/cpu/instructions/opcode.txt b/cpu/instructions/opcode.txt index f43f58a..16cdbd3 100644 --- a/cpu/instructions/opcode.txt +++ b/cpu/instructions/opcode.txt @@ -3,8 +3,8 @@ Binary format: is_conditional: - n: number of bits for current mode - s: minimum number of bits required to represent n-1 + n: number of bits in first parameter + 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: @@ -21,3 +21,7 @@ is_conditional: Conditional instructions will be executed after unconditional ones Conditional instructions will never set flags, if a conditional instruction references another, it will always be based on null flags + +Exceptions: + If s > n: + TODO: make exception list -- cgit v1.2.3