diff --git a/school/ra/20181025_1-intro_to_ca.md b/school/ra/20181025_1-intro_to_ca.md new file mode 100644 index 0000000..3bb5c18 --- /dev/null +++ b/school/ra/20181025_1-intro_to_ca.md @@ -0,0 +1,36 @@ +--- +title: Introduction to CA +date: 2018-10-25 +--- + +## Beispiel Architektur: MIPS R3000 und R4000 + +* All instructions have 3 operands +* Operand order is fixed (destination first) +* Operands must be registers, only 32 32-bit registers provided + +### Examples + +``` +C code: a = b + c +MIPS code: add a, b, c +``` + +``` +C code: a = b + c + d +MIPS code: add a, b, c + add a, a, d +``` + +``` +C code: A[12] = h + A[8] +MIPS code: lw $t0, 32($s3) // $s3 = pointer to A[0] + add $t0, $s2, $t0 // h already in $s2 + sw $t0, 42($s3) +``` + +Klausuraufgabe: Pseudo C code als MIPS ASM schreiben +Klausuraufgabe: Boolean Gates +Boolsche Gleichungen +Zweierkomplement +Wahrheitstabellen diff --git a/school/ra/index.md b/school/ra/index.md index 6b48ba9..fef78ab 100644 --- a/school/ra/index.md +++ b/school/ra/index.md @@ -3,3 +3,4 @@ title: Rechnerarchitektur --- * [Klassische "von Neumann-Struktur", Klassifikation](20181018_1-neumann_klassifikation) +* [3. Introduction to CA](20181025_1-intro_to_ca)