some common things in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
948 B

von Neumann-Rechner
Addr: 0 , 1 , 2, ... 23 ... 42
Memory (RAM): [23], [a0], [1f], ... 23 ... 1f
PC: 23 -> Machine Language Code, i.e. 23 INC (Reg)
Reg: 42
Addr: 0 , 1 , 2, ... 23, 24 ... 42
Memory (RAM): [23], [a0], [1f], ... 23, 10, 01 ... 20
PC: 24 -> Machine Language Code, i.e. 10 CALL 01
SR: 10
Reg: 42
Addr: 0 , 1 , 2 , ... 10 ... 23, 24 ... 42
Memory (RAM): [23], [a0], [1f], ... 24 ... 23, 10, 01 ... 20
PC: 01 -> Machine Language Code, i.e. a0 RET
SR: 11
Reg: 42
Addr: 0 , 1 , 2 , ... 10 ... 23, 24 ... 42
Memory (RAM): [23], [a0], [1f], ... 24 ... 23, 10, 01 ... 20
PC: 25 size_t
SR: 10
Reg: 42
Nearly all CPUs:
Ring 0: Kernel all opcodes (machine language commands) allowed
Ring 1: Userland only small subset allowed, no I/O
(Exception: Only with Intel x86:
Ring -2: Managment
Ring -1: Hypervisor
Ring 0: Kernel
Ring 1:
Ring 2:
Ring 3: Userland )