Add missing test files
This commit is contained in:
BIN
files/task3/GOTO1.ijvm
Normal file
BIN
files/task3/GOTO1.ijvm
Normal file
Binary file not shown.
16
files/task3/GOTO1.jas
Normal file
16
files/task3/GOTO1.jas
Normal file
@@ -0,0 +1,16 @@
|
||||
.constant
|
||||
.end-constant
|
||||
|
||||
.main
|
||||
L1:
|
||||
BIPUSH 0x31
|
||||
OUT
|
||||
GOTO L3
|
||||
L2:
|
||||
BIPUSH 0x32
|
||||
OUT
|
||||
L3:
|
||||
BIPUSH 0x33
|
||||
OUT
|
||||
HALT
|
||||
.end-main
|
||||
BIN
files/task3/GOTO2.ijvm
Normal file
BIN
files/task3/GOTO2.ijvm
Normal file
Binary file not shown.
17
files/task3/GOTO2.jas
Normal file
17
files/task3/GOTO2.jas
Normal file
@@ -0,0 +1,17 @@
|
||||
.constant
|
||||
.end-constant
|
||||
|
||||
.main
|
||||
L1:
|
||||
BIPUSH 0x31
|
||||
OUT
|
||||
GOTO L3
|
||||
L2:
|
||||
BIPUSH 0x32
|
||||
OUT
|
||||
HALT
|
||||
L3:
|
||||
BIPUSH 0x33
|
||||
OUT
|
||||
GOTO L2
|
||||
.end-main
|
||||
BIN
files/task3/IFEQ1.ijvm
Normal file
BIN
files/task3/IFEQ1.ijvm
Normal file
Binary file not shown.
27
files/task3/IFEQ1.jas
Normal file
27
files/task3/IFEQ1.jas
Normal file
@@ -0,0 +1,27 @@
|
||||
.constant
|
||||
.end-constant
|
||||
|
||||
.main
|
||||
|
||||
L1:
|
||||
BIPUSH 0x05
|
||||
L2:
|
||||
DUP
|
||||
BIPUSH 0x30
|
||||
IADD
|
||||
OUT
|
||||
BIPUSH 0x01
|
||||
ISUB
|
||||
DUP
|
||||
IFEQ L3
|
||||
GOTO L2
|
||||
L3:
|
||||
BIPUSH 0x65
|
||||
BIPUSH 0x6E
|
||||
BIPUSH 0x6F
|
||||
BIPUSH 0x64
|
||||
OUT
|
||||
OUT
|
||||
OUT
|
||||
OUT
|
||||
.end-main
|
||||
BIN
files/task3/IFICMPEQ1.ijvm
Normal file
BIN
files/task3/IFICMPEQ1.ijvm
Normal file
Binary file not shown.
31
files/task3/IFICMPEQ1.jas
Normal file
31
files/task3/IFICMPEQ1.jas
Normal file
@@ -0,0 +1,31 @@
|
||||
.constant
|
||||
.end-constant
|
||||
|
||||
.main
|
||||
|
||||
L1:
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x01
|
||||
IF_ICMPEQ L5
|
||||
L2:
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x01
|
||||
ISUB
|
||||
BIPUSH 0x01
|
||||
IF_ICMPEQ L5
|
||||
L3:
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x01
|
||||
BIPUSH 0x02
|
||||
BIPUSH 0x03
|
||||
L4:
|
||||
BIPUSH 0x00
|
||||
IF_ICMPEQ L6
|
||||
GOTO L4
|
||||
L5:
|
||||
HALT
|
||||
L6:
|
||||
BIPUSH 0x13
|
||||
HALT
|
||||
|
||||
.end-main
|
||||
BIN
files/task3/IFLT1.ijvm
Normal file
BIN
files/task3/IFLT1.ijvm
Normal file
Binary file not shown.
31
files/task3/IFLT1.jas
Normal file
31
files/task3/IFLT1.jas
Normal file
@@ -0,0 +1,31 @@
|
||||
.constant
|
||||
.end-constant
|
||||
|
||||
.main
|
||||
|
||||
L1:
|
||||
BIPUSH 0x00
|
||||
IFLT L6
|
||||
L2:
|
||||
BIPUSH 0x01
|
||||
IFLT L6
|
||||
L3:
|
||||
BIPUSH 0x02
|
||||
IFLT L6
|
||||
L4:
|
||||
BIPUSH 0x10
|
||||
BIPUSH 0x11
|
||||
ISUB
|
||||
IFLT L6
|
||||
L5:
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x00
|
||||
BIPUSH 0x00
|
||||
HALT
|
||||
L6:
|
||||
BIPUSH 0x37
|
||||
HALT
|
||||
.end-main
|
||||
|
||||
Reference in New Issue
Block a user