Files
Construction-of-Compilers/Project-01/uap25-pro01-tram/tramcode/example1.tram
Jan-Niclas Loosen b0974af092 Start with project
2025-10-23 13:45:02 +02:00

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