diff options
author | RossTheRoss <msattr@gmail.com> | 2019-01-31 10:05:28 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-01-31 10:05:28 -0600 |
commit | 7ca44799d5081bba7b362622997377d5df5307ee (patch) | |
tree | 2439dd743119323b3db43c7054b8644fc96c7ae2 /ee1301/wk0/lab0 | |
parent | Rename file properly (diff) | |
download | homework-7ca44799d5081bba7b362622997377d5df5307ee.tar homework-7ca44799d5081bba7b362622997377d5df5307ee.tar.gz homework-7ca44799d5081bba7b362622997377d5df5307ee.tar.bz2 homework-7ca44799d5081bba7b362622997377d5df5307ee.tar.lz homework-7ca44799d5081bba7b362622997377d5df5307ee.tar.xz homework-7ca44799d5081bba7b362622997377d5df5307ee.tar.zst homework-7ca44799d5081bba7b362622997377d5df5307ee.zip |
Rearrange
Diffstat (limited to 'ee1301/wk0/lab0')
-rw-r--r-- | ee1301/wk0/lab0/Lec1p3p1.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ee1301/wk0/lab0/Lec1p3p1.cpp b/ee1301/wk0/lab0/Lec1p3p1.cpp deleted file mode 100644 index 0635acb..0000000 --- a/ee1301/wk0/lab0/Lec1p3p1.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include <iostream> -#include <bitset> -using namespace std; - -int main() -{ - - // Store data in MEMORY - int X = 0b0; - int Y = 0b1; - - // Load data, perform AND instruction, store result to memory - int X_and_Y = X & Y; - - // Load data, perform OR instruction, store result to memory - int X_or_Y = X | Y; - - // Write the results to terminal - cout << "X AND Y = " << bitset<1>(X_and_Y) << endl; - cout << "X OR Y = " << bitset<1>(X_or_Y) << endl; - - return 0; -} |