Start with project
This commit is contained in:
13
Project-01/uap25-pro01-tram/tramcode/example2.tram
Normal file
13
Project-01/uap25-pro01-tram/tramcode/example2.tram
Normal file
@@ -0,0 +1,13 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user