From 5a87ffe89c6509c295d22c9b105fa1126328f6c2 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 15 Feb 2023 19:54:24 -0500 Subject: Add more instructions --- cpu/instructions/conditions/save_condition.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cpu/instructions/conditions/save_condition.txt (limited to 'cpu/instructions/conditions/save_condition.txt') diff --git a/cpu/instructions/conditions/save_condition.txt b/cpu/instructions/conditions/save_condition.txt new file mode 100644 index 0000000..a7df9d2 --- /dev/null +++ b/cpu/instructions/conditions/save_condition.txt @@ -0,0 +1,18 @@ +Number of parameters: + +Usage: + save_condition + +conditional parameter: same as is_conditional from ../opcode.txt, but with the following changes: + Values to be compared are instead xor'd + +Effect: + Saves the selected flags to at bitwise position + Flags are xor'd with the comparison value + Resulting value is shifted down to not have gaps from unused flags + +Exceptions: + None + +Notes: + Will be executed in the conditional phase -- cgit v1.2.3