From e4f85d2fe57613a94a9cb99e3aca4df91b639e31 Mon Sep 17 00:00:00 2001 From: Test_User Date: Thu, 16 Feb 2023 16:36:07 -0500 Subject: Add bitwise instructions --- cpu/instructions/bitwise/and.txt | 10 ++++++++++ cpu/instructions/bitwise/arithmetic_shift_right.txt | 10 ++++++++++ cpu/instructions/bitwise/exclusive_or.txt | 10 ++++++++++ cpu/instructions/bitwise/not.txt | 10 ++++++++++ cpu/instructions/bitwise/notes.txt | 4 ++++ cpu/instructions/bitwise/or.txt | 10 ++++++++++ cpu/instructions/bitwise/rotate_left.txt | 10 ++++++++++ cpu/instructions/bitwise/rotate_right.txt | 10 ++++++++++ cpu/instructions/bitwise/shift_left.txt | 10 ++++++++++ cpu/instructions/bitwise/shift_right.txt | 10 ++++++++++ 10 files changed, 94 insertions(+) create mode 100644 cpu/instructions/bitwise/and.txt create mode 100644 cpu/instructions/bitwise/arithmetic_shift_right.txt create mode 100644 cpu/instructions/bitwise/exclusive_or.txt create mode 100644 cpu/instructions/bitwise/not.txt create mode 100644 cpu/instructions/bitwise/notes.txt create mode 100644 cpu/instructions/bitwise/or.txt create mode 100644 cpu/instructions/bitwise/rotate_left.txt create mode 100644 cpu/instructions/bitwise/rotate_right.txt create mode 100644 cpu/instructions/bitwise/shift_left.txt create mode 100644 cpu/instructions/bitwise/shift_right.txt diff --git a/cpu/instructions/bitwise/and.txt b/cpu/instructions/bitwise/and.txt new file mode 100644 index 0000000..9704083 --- /dev/null +++ b/cpu/instructions/bitwise/and.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + and + +Effect: + Sets to the bitwise and of and + +Exceptions: + None diff --git a/cpu/instructions/bitwise/arithmetic_shift_right.txt b/cpu/instructions/bitwise/arithmetic_shift_right.txt new file mode 100644 index 0000000..d7ea8a7 --- /dev/null +++ b/cpu/instructions/bitwise/arithmetic_shift_right.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + arithmetic_shift_right + +Effect: + Sets to shifted to the right bits, filling in leading bits with the most significant bit of + +Exceptions: + None diff --git a/cpu/instructions/bitwise/exclusive_or.txt b/cpu/instructions/bitwise/exclusive_or.txt new file mode 100644 index 0000000..6f9497c --- /dev/null +++ b/cpu/instructions/bitwise/exclusive_or.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + exclusive_or + +Effect: + Sets to the bitwise exclusive or of and + +Exceptions: + None diff --git a/cpu/instructions/bitwise/not.txt b/cpu/instructions/bitwise/not.txt new file mode 100644 index 0000000..8e8784a --- /dev/null +++ b/cpu/instructions/bitwise/not.txt @@ -0,0 +1,10 @@ +Number of parameters: 2 + +Usage: + not + +Effect: + Sets to the bitwise not of + +Exceptions: + None diff --git a/cpu/instructions/bitwise/notes.txt b/cpu/instructions/bitwise/notes.txt new file mode 100644 index 0000000..f1694e9 --- /dev/null +++ b/cpu/instructions/bitwise/notes.txt @@ -0,0 +1,4 @@ +Unless otherwise specified, all bitwise instructions will: + Set the zero flag when all bits of the result are zero + Not set the carry flag + Not set the overflow flag diff --git a/cpu/instructions/bitwise/or.txt b/cpu/instructions/bitwise/or.txt new file mode 100644 index 0000000..94c7127 --- /dev/null +++ b/cpu/instructions/bitwise/or.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + or + +Effect: + Sets to the bitwise or of and + +Exceptions: + None diff --git a/cpu/instructions/bitwise/rotate_left.txt b/cpu/instructions/bitwise/rotate_left.txt new file mode 100644 index 0000000..10bec89 --- /dev/null +++ b/cpu/instructions/bitwise/rotate_left.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + rotate_left + +Effect: + Sets to rotated to the left bits + +Exceptions: + None diff --git a/cpu/instructions/bitwise/rotate_right.txt b/cpu/instructions/bitwise/rotate_right.txt new file mode 100644 index 0000000..39e29ff --- /dev/null +++ b/cpu/instructions/bitwise/rotate_right.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + rotate_right + +Effect: + Sets to rotated to the right bits + +Exceptions: + None diff --git a/cpu/instructions/bitwise/shift_left.txt b/cpu/instructions/bitwise/shift_left.txt new file mode 100644 index 0000000..6f75777 --- /dev/null +++ b/cpu/instructions/bitwise/shift_left.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + shift_left + +Effect: + Sets to shifted to the left bits + +Exceptions: + None diff --git a/cpu/instructions/bitwise/shift_right.txt b/cpu/instructions/bitwise/shift_right.txt new file mode 100644 index 0000000..8f871a7 --- /dev/null +++ b/cpu/instructions/bitwise/shift_right.txt @@ -0,0 +1,10 @@ +Number of parameters: 3 + +Usage: + shift_right + +Effect: + Sets to shifted to the right bits + +Exceptions: + None -- cgit v1.2.3