From 90715002409a5426082627a31ded241bc41a26d7 Mon Sep 17 00:00:00 2001 From: unlockable Date: Thu, 11 Jul 2024 00:12:26 +0800 Subject: [PATCH] Test blez --- 06test_blez.asm | 18 ++++++++++++++++++ 06test_blez.txt | 16 ++++++++++++++++ 06test_blez_mars.txt | 16 ++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 06test_blez.asm create mode 100644 06test_blez.txt create mode 100644 06test_blez_mars.txt diff --git a/06test_blez.asm b/06test_blez.asm new file mode 100644 index 0000000..0937e24 --- /dev/null +++ b/06test_blez.asm @@ -0,0 +1,18 @@ + addi $s0, $zero, -2 + nop + nop + nop + nop +start: + addi $s0, $s0, 1 + nop + nop + nop + nop + blez $s0, start + nop + nop + nop + nop +end: + j end \ No newline at end of file diff --git a/06test_blez.txt b/06test_blez.txt new file mode 100644 index 0000000..ff27bb0 --- /dev/null +++ b/06test_blez.txt @@ -0,0 +1,16 @@ +20'd0: instruction <= 32'h2010fffe; // addi $s0, $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'h22100001; // addi $s0, $s0, 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'h1a00fffa; // blez $s0, 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'h0810000f; // j end \ No newline at end of file diff --git a/06test_blez_mars.txt b/06test_blez_mars.txt new file mode 100644 index 0000000..99e839b --- /dev/null +++ b/06test_blez_mars.txt @@ -0,0 +1,16 @@ +2010fffe +00000000 +00000000 +00000000 +00000000 +22100001 +00000000 +00000000 +00000000 +00000000 +1a00fffa +00000000 +00000000 +00000000 +00000000 +0810000f