Add execution to VM via file, starting to iron out bugs

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-02-09 15:43:07 -05:00
parent 00027c4542
commit c982be553f
5 changed files with 93 additions and 16 deletions

View File

@@ -13,9 +13,9 @@ code $0x0 {
storeimm %r01, $0xDEADBEEF
cmpeq %r00, %r01
storeimm %r00, failure
storeimm %r01, ok
cmpeq %r00, %r01
jz %r00
@@ -23,9 +23,8 @@ code $0x0 {
failure:
storeimm %status, $1
halt
ok:
ok: halt
.export main
}