Working reading
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
init() {
|
||||
|
||||
$link -> $counter
|
||||
|
||||
}
|
||||
|
||||
increment(x) {
|
||||
|
||||
ADD $counter, %x, $counter
|
||||
MOV $counter, %r
|
||||
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
increment(5)
|
||||
increment(3)
|
||||
|
||||
PRINT $counter, -> $link
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user