change register count to 15, add global registers

This commit is contained in:
2020-10-10 23:28:29 +02:00
parent 9254635fd7
commit 74e3716ce4
11 changed files with 102 additions and 17 deletions
+11
View File
@@ -0,0 +1,11 @@
(
(ld g0 15)
(call add_cat)
(cmp g0 16
(ne? (fault)))
(proc add_cat
(add g0 1)
(ret)
)
)
+12
View File
@@ -0,0 +1,12 @@
(
(sym cats g0)
(ld cats 15)
(call add_cat)
(cmp cats 16
(ne? (fault)))
(proc add_cat
(add cats 1)
(ret)
)
)