reorganisation par cours dans sous-répertoires
This commit is contained in:
26
1-ComputationAndData/MVaP/ExampleVariable.mvap
Normal file
26
1-ComputationAndData/MVaP/ExampleVariable.mvap
Normal file
@@ -0,0 +1,26 @@
|
||||
# Example du cours de déclaratrion / restauration d'une variable
|
||||
PUSHI 1 # i habite à l'adresse 0
|
||||
# quelque chose ici si on veut
|
||||
PUSHI 42
|
||||
PUSHI 42
|
||||
PUSHI 42
|
||||
POP
|
||||
POP
|
||||
POP
|
||||
# Fin du quelque chose ici si on veut
|
||||
PUSHI 6
|
||||
STOREG 0
|
||||
# quelque chose ici si on veut
|
||||
PUSHI 42
|
||||
PUSHI 42
|
||||
PUSHI 42
|
||||
POP
|
||||
POP
|
||||
POP
|
||||
# Fin du quelque chose ici si on veut
|
||||
PUSHI 1
|
||||
PUSHG 0
|
||||
ADD
|
||||
STOREG 0
|
||||
# i est incrémenté et vaut 7.
|
||||
HALT
|
Reference in New Issue
Block a user