diff --git a/08test_bltz.asm b/08test_bltz.asm new file mode 100644 index 0000000..0314ede --- /dev/null +++ b/08test_bltz.asm @@ -0,0 +1,18 @@ + addi $s1, $zero, -2 + nop + nop + nop + nop +start: + addi $s1, $s1, 1 + nop + nop + nop + nop + bltz $s1, start + nop + nop + nop + nop +end: + j end \ No newline at end of file diff --git a/08test_bltz.txt b/08test_bltz.txt new file mode 100644 index 0000000..1ea236b --- /dev/null +++ b/08test_bltz.txt @@ -0,0 +1,16 @@ +20'd0: instruction <= 32'h2011fffe; // addi $s1, $zero, 2 +20'd1: instruction <= 32'h00000000; +20'd2: instruction <= 32'h00000000; +20'd3: instruction <= 32'h00000000; +20'd4: instruction <= 32'h00000000; // start: +20'd5: instruction <= 32'h22310001; // addi $s1, $s1, -1 +20'd6: instruction <= 32'h00000000; +20'd7: instruction <= 32'h00000000; +20'd8: instruction <= 32'h00000000; +20'd9: instruction <= 32'h00000000; +20'd10: instruction <= 32'h0620fffa; // bgtz $s1, start +20'd11: instruction <= 32'h00000000; +20'd12: instruction <= 32'h00000000; +20'd13: instruction <= 32'h00000000; +20'd14: instruction <= 32'h00000000; // end: +20'd15: instruction <= 32'h0800000f; // j end \ No newline at end of file diff --git a/08test_bltz_mars.txt b/08test_bltz_mars.txt new file mode 100644 index 0000000..28b885c --- /dev/null +++ b/08test_bltz_mars.txt @@ -0,0 +1,16 @@ +2011fffe +00000000 +00000000 +00000000 +00000000 +22310001 +00000000 +00000000 +00000000 +00000000 +0620fffa +00000000 +00000000 +00000000 +00000000 +0800000f