Skip to content

Commit

Permalink
Added test input/output files to check for correct program operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
grnt426 committed Mar 8, 2012
1 parent 0790758 commit 8e51330
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_input/test.1
@@ -0,0 +1,2 @@
ADD $s1, $s2, $d1
HALT
6 changes: 6 additions & 0 deletions test_input/test.2
@@ -0,0 +1,6 @@
* Comments
*Author: Grant Kurtz
********************
HALT *derpity derp
********************
*End Program
11 changes: 11 additions & 0 deletions test_input/test.3
@@ -0,0 +1,11 @@
* File: test.3
* Author: Grant Kurtz

lw $d1
ROT1
lw $d2
ADD $s1, $s2, $d1
ROT1
SW $s1
HALT
*Done!
8 changes: 8 additions & 0 deletions test_input/test.4
@@ -0,0 +1,8 @@
* Comment
JMP 2
*ignored
lw $1
lw $1
NOP
HALT
*kjsdklfjdkljf
10 changes: 10 additions & 0 deletions test_input/test.5
@@ -0,0 +1,10 @@
* COmment

LW $d1
BEZ $s1, LABEL
ROT1
NOP
NOP
NOP
LABEL:
HALT
5 changes: 5 additions & 0 deletions test_input/test.6
@@ -0,0 +1,5 @@
* Note, the below assumes
* 28bytes of text storage
LABEL:
JMP LABEL
HALT
2 changes: 2 additions & 0 deletions test_output/test.1
@@ -0,0 +1,2 @@
0101010
1111000
1 change: 1 addition & 0 deletions test_output/test.2
@@ -0,0 +1 @@
1111000
7 changes: 7 additions & 0 deletions test_output/test.3
@@ -0,0 +1,7 @@
0110000
1001000
0110100
0101010
1001000
0111000
1111000
6 changes: 6 additions & 0 deletions test_output/test.4
@@ -0,0 +1,6 @@
1011000
0000010
0111000
0111000
1111100
1111000
8 changes: 8 additions & 0 deletions test_output/test.5
@@ -0,0 +1,8 @@
0111000
1000000
0000100
1001000
1111100
1111100
1111100
1111000
3 changes: 3 additions & 0 deletions test_output/test.6
@@ -0,0 +1,3 @@
1011000
0011010
1111000

0 comments on commit 8e51330

Please sign in to comment.