notes/school/ra/20181025_1-intro_to_ca.md
Valentin Brandl 3dca722ef9
All checks were successful
the build was successful
Add RA notes
2018-10-27 16:57:52 +02:00

668 B

title date
Introduction to CA 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