Add missing test files

This commit is contained in:
2018-05-26 15:35:58 +02:00
parent 7898c76570
commit 2fe47fe30c
82 changed files with 52716 additions and 2 deletions

BIN
files/task4/IINCTest.ijvm Normal file

Binary file not shown.

19
files/task4/IINCTest.jas Normal file
View File

@@ -0,0 +1,19 @@
.main
.var
hi
there
.end-var
L1:
BIPUSH 0
DUP
ISTORE hi
ISTORE there
IINC hi 0
IINC hi 1
IINC hi 3
IINC there 0
IINC there -1
IINC there -3
HALT
.end-main

BIN
files/task4/LoadTest1.ijvm Normal file

Binary file not shown.

12
files/task4/LoadTest1.jas Normal file
View File

@@ -0,0 +1,12 @@
.constant
henk 1
piet 2
kees 3
.end-constant
.main
LDC_W henk
LDC_W piet
LDC_W kees
HALT
.end-main

BIN
files/task4/LoadTest2.ijvm Normal file

Binary file not shown.

34
files/task4/LoadTest2.jas Normal file
View File

@@ -0,0 +1,34 @@
.constant
henk 2
piet 3
kees 2
.end-constant
.main
.var
pew
.end-var
BIPUSH 42
LDC_W henk
LDC_W kees
ISUB
IFEQ good
GOTO err
good: LDC_W piet
ISTORE pew
BIPUSH 0
ILOAD pew
BIPUSH 79
OUT
BIPUSH 75
OUT
HALT
err: BIPUSH 69
OUT
BIPUSH 82
OUT
BIPUSH 82
OUT
HALT
.end-main

BIN
files/task4/LoadTest3.ijvm Normal file

Binary file not shown.

30
files/task4/LoadTest3.jas Normal file
View File

@@ -0,0 +1,30 @@
.constant
henk 1
piet 2
kees 3
.end-constant
.main
.var
var1
var2
var3
.end-var
BIPUSH 42
LDC_W henk
ISTORE var1
LDC_W piet
ISTORE var2
LDC_W kees
ISTORE var3
ILOAD var3
ILOAD var2
ILOAD var1
POP
POP
POP
BIPUSH 42
HALT
.end-main

BIN
files/task4/LoadTest4.ijvm Normal file

Binary file not shown.

43
files/task4/LoadTest4.jas Normal file
View File

@@ -0,0 +1,43 @@
.main
.var
i
a
b
c
d
e
f
g
.end-var
BIPUSH 10
ISTORE i
L1: ILOAD i
DUP
BIPUSH 97
IADD
OUT
IFEQ END
BIPUSH 97
ISTORE a
BIPUSH 98
ISTORE b
BIPUSH 99
ISTORE c
BIPUSH 100
ISTORE d
ILOAD i
BIPUSH 1
ISUB
ISTORE i
GOTO L1
END: ILOAD d
ILOAD c
ILOAD b
ILOAD a
OUT
OUT
OUT
OUT
HALT
.end-main