summaryrefslogtreecommitdiff
path: root/cpu/instructions/conditions/save_condition.txt
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-02-15 19:54:24 -0500
committerTest_User <hax@andrewyu.org>2023-02-15 19:54:24 -0500
commit5a87ffe89c6509c295d22c9b105fa1126328f6c2 (patch)
tree630f3846bb0098417fb3d838c08f16ed19fda886 /cpu/instructions/conditions/save_condition.txt
parent22029d37cbf391a35304d32778bd01ecf40de482 (diff)
downloadspecification-5a87ffe89c6509c295d22c9b105fa1126328f6c2.tar.gz
specification-5a87ffe89c6509c295d22c9b105fa1126328f6c2.zip
Add more instructions
Diffstat (limited to '')
-rw-r--r--cpu/instructions/conditions/save_condition.txt18
1 files changed, 18 insertions, 0 deletions
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 <output> <offset> <conditional parameter>
+
+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 <output> at bitwise position <offset>
+ 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