Updated repository

This commit is contained in:
Veit Heller
2014-12-04 16:05:29 +01:00
parent 279ee60d9d
commit 06cb8a39b1
22 changed files with 103 additions and 398 deletions

1
test/argc_fail Normal file
View File

@@ -0,0 +1 @@
LOAD

1
test/command_fail Normal file
View File

@@ -0,0 +1 @@
UNKNOWN

21
test/factorial Normal file
View File

@@ -0,0 +1,21 @@
ENTRY 22
LOAD -3
ICONST 2
ILT
BRF 10
ICONST 1
RET
LOAD -3
LOAD -3
ICONST 1
ISUB
CALL 0 1
IMULT
RET
ICONST 12
CALL 0 1
IPRINT
ICONST 10
PRINT
HALT

31
test/helloworld Normal file
View File

@@ -0,0 +1,31 @@
ICONST 72
PRINT
ICONST 101
PRINT
ICONST 108
PRINT
ICONST 108
PRINT
ICONST 111
PRINT
ICONST 44
PRINT
ICONST 32
PRINT
ICONST 119
PRINT
ICONST 111
PRINT
ICONST 114
PRINT
ICONST 108
PRINT
ICONST 100
PRINT
ICONST 33
GSTORE 0
GLOAD 0
PRINT
ICONST 10
PRINT
HALT