summaryrefslogtreecommitdiff
path: root/cpu/instructions/bitwise
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-06-14 04:04:22 -0400
committerTest_User <hax@andrewyu.org>2023-06-14 04:04:22 -0400
commitcdcb701aa48a974f97df31438f32071b3001ac7b (patch)
treef4b2ca636b5745e37fb362af2c3d9f511ecf5b1d /cpu/instructions/bitwise
parent523518b60efde6a605a8fbc33f14f9924fd08d69 (diff)
downloadspecification-cdcb701aa48a974f97df31438f32071b3001ac7b.tar.gz
specification-cdcb701aa48a974f97df31438f32071b3001ac7b.zip
Add a bunch of fewer-parameter versions of instructions, specify that special returns only take effect after other writes complete
Diffstat (limited to 'cpu/instructions/bitwise')
-rw-r--r--cpu/instructions/bitwise/and_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/arithmetic_shift_right_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/exclusive_or_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/not_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/or_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/rotate_left_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/rotate_right_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/shift_left_inplace.txt10
-rw-r--r--cpu/instructions/bitwise/shift_right_inplace.txt10
9 files changed, 90 insertions, 0 deletions
diff --git a/cpu/instructions/bitwise/and_inplace.txt b/cpu/instructions/bitwise/and_inplace.txt
new file mode 100644
index 0000000..21cb147
--- /dev/null
+++ b/cpu/instructions/bitwise/and_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ and_inplace <output> <value>
+
+Effect:
+ Sets <output> to the bitwise and of <value> and <output>
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/arithmetic_shift_right_inplace.txt b/cpu/instructions/bitwise/arithmetic_shift_right_inplace.txt
new file mode 100644
index 0000000..9507e65
--- /dev/null
+++ b/cpu/instructions/bitwise/arithmetic_shift_right_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ arithmetic_shift_right_inplace <value> <amount>
+
+Effect:
+ Sets <value> to <value> shifted to the right <amount> bits, filling in leading bits with the most significant bit of <value>
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/exclusive_or_inplace.txt b/cpu/instructions/bitwise/exclusive_or_inplace.txt
new file mode 100644
index 0000000..e0b4b47
--- /dev/null
+++ b/cpu/instructions/bitwise/exclusive_or_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ exclusive_or_inplace <output> <value>
+
+Effect:
+ Sets <output> to the bitwise exclusive or of <value> and <output>
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/not_inplace.txt b/cpu/instructions/bitwise/not_inplace.txt
new file mode 100644
index 0000000..f854a8d
--- /dev/null
+++ b/cpu/instructions/bitwise/not_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 1
+
+Usage:
+ not_inplace <value>
+
+Effect:
+ Sets <value> to the bitwise not of <value>
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/or_inplace.txt b/cpu/instructions/bitwise/or_inplace.txt
new file mode 100644
index 0000000..22598a3
--- /dev/null
+++ b/cpu/instructions/bitwise/or_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ or_inplace <output> <value>
+
+Effect:
+ Sets <output> to the bitwise or of <value> and <output>
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/rotate_left_inplace.txt b/cpu/instructions/bitwise/rotate_left_inplace.txt
new file mode 100644
index 0000000..65424f5
--- /dev/null
+++ b/cpu/instructions/bitwise/rotate_left_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ rotate_left_inplace <value> <amount>
+
+Effect:
+ Sets <value> to <value> rotated to the left <amount> bits
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/rotate_right_inplace.txt b/cpu/instructions/bitwise/rotate_right_inplace.txt
new file mode 100644
index 0000000..18f7968
--- /dev/null
+++ b/cpu/instructions/bitwise/rotate_right_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ rotate_right_inplace <value> <amount>
+
+Effect:
+ Sets <value> to <value> rotated to the right <amount> bits
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/shift_left_inplace.txt b/cpu/instructions/bitwise/shift_left_inplace.txt
new file mode 100644
index 0000000..109e271
--- /dev/null
+++ b/cpu/instructions/bitwise/shift_left_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ shift_left_inplace <value> <amount>
+
+Effect:
+ Sets <value> to <value> shifted to the left <amount> bits
+
+Exceptions:
+ None
diff --git a/cpu/instructions/bitwise/shift_right_inplace.txt b/cpu/instructions/bitwise/shift_right_inplace.txt
new file mode 100644
index 0000000..4000d6e
--- /dev/null
+++ b/cpu/instructions/bitwise/shift_right_inplace.txt
@@ -0,0 +1,10 @@
+Number of parameters: 2
+
+Usage:
+ shift_right_inplace <value> <amount>
+
+Effect:
+ Sets <value> to <value> shifted to the right <amount> bits
+
+Exceptions:
+ None