13 lines
239 B
Plaintext
13 lines
239 B
Plaintext
// Quellkode: x=10; if(x == 0) 100 else 200; 3
|
|
// Annahmen: Variable x durch Kellerzelle 0 implementiert, sowie PP=0, FP=0 und TOP=0.
|
|
//
|
|
CONST 10
|
|
STORE 0 0
|
|
LOAD 0 0
|
|
IFZERO L1
|
|
CONST 200
|
|
GOTO L2
|
|
L1: CONST 100
|
|
L2: NOP
|
|
CONST 3
|
|
HALT |