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