diff --git a/02_MENT/a.out b/02_MENT/a.out index f49d944..bb90f23 100755 Binary files a/02_MENT/a.out and b/02_MENT/a.out differ diff --git a/02_MENT/main_02_MENT.cpp b/02_MENT/main_02_MENT.cpp index d3316e2..99fd0b8 100644 --- a/02_MENT/main_02_MENT.cpp +++ b/02_MENT/main_02_MENT.cpp @@ -40,9 +40,13 @@ void printPascalString(PascalString s) { } } +int intToDual(int n) { + +} + int main(int argc, char** argv, char** envp) { - PascalString s = {3, '1', '0', '0'}; - PascalString s2 = {4, 'f', 'f', 'f', 'f'}; + PascalString s = {3, '1', '0', '0'}; + PascalString s2 = {4, 'f', 'f', 'f', 'f'}; println(hexStringToInt(s)); println(hexStringToInt(s2)); @@ -52,6 +56,14 @@ int main(int argc, char** argv, char** envp) { printPascalString(s2); - return 0; + int controlRegister = 128; + controlRegister |= 64+32; + controlRegister ^=16; + controlRegister &= 128+64; + controlRegister <<= 1; + + println(controlRegister); + + return 0; }