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

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