14 lines
241 B
Plaintext
14 lines
241 B
Plaintext
// Quellkode: y = x*3+5*2
|
|
// Annahmen: Variable x durch Kellerzelle 0 und Variable y durch Kellerzelle 1 implementiert,
|
|
// sowie PP=0, FP=0 und TOP=1.
|
|
CONST 6
|
|
STORE 0 0
|
|
LOAD 0 0
|
|
CONST 3
|
|
MUL
|
|
CONST 5
|
|
CONST 2
|
|
MUL
|
|
ADD
|
|
STORE 1 0
|
|
HALT |