MP_02 Aufgaben
This commit is contained in:
parent
8f7457e64d
commit
6b0d32e796
BIN
02_MENT/a.out
BIN
02_MENT/a.out
Binary file not shown.
|
@ -40,6 +40,10 @@ 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'};
|
||||
|
@ -52,6 +56,14 @@ int main(int argc, char** argv, char** envp) {
|
|||
|
||||
printPascalString(s2);
|
||||
|
||||
int controlRegister = 128;
|
||||
controlRegister |= 64+32;
|
||||
controlRegister ^=16;
|
||||
controlRegister &= 128+64;
|
||||
controlRegister <<= 1;
|
||||
|
||||
println(controlRegister);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue