parent
e39bbdf827
commit
3dca722ef9
36
school/ra/20181025_1-intro_to_ca.md
Normal file
36
school/ra/20181025_1-intro_to_ca.md
Normal file
@ -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
|
@ -3,3 +3,4 @@ title: Rechnerarchitektur
|
|||||||
---
|
---
|
||||||
|
|
||||||
* [Klassische "von Neumann-Struktur", Klassifikation](20181018_1-neumann_klassifikation)
|
* [Klassische "von Neumann-Struktur", Klassifikation](20181018_1-neumann_klassifikation)
|
||||||
|
* [3. Introduction to CA](20181025_1-intro_to_ca)
|
||||||
|
Loading…
Reference in New Issue
Block a user