From 1b53dff9b0311f27689e451e4b808d22eefac082 Mon Sep 17 00:00:00 2001 From: unlockable Date: Wed, 10 Jul 2024 23:56:03 +0800 Subject: [PATCH] Tset all commands (part 1) --- 02test_all_inst.asm | 11 +++++++++++ 02test_all_inst.txt | 11 +++++++++++ 02test_all_inst_mars.txt | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 02test_all_inst.asm create mode 100644 02test_all_inst.txt create mode 100644 02test_all_inst_mars.txt diff --git a/02test_all_inst.asm b/02test_all_inst.asm new file mode 100644 index 0000000..4e06bb3 --- /dev/null +++ b/02test_all_inst.asm @@ -0,0 +1,11 @@ +lui $s0, 0x4000 +addi $s1, $0, 0xa +sw $s1, 16($s0) +lw $s2, 16($s0) +addi $s1, $s1, -2 +add $s3, $s1, $s2 +addu $s3, $s2, $s2 +sub $s3, $s2, $s1 +subu $s1, $s1, $s3 +addiu $s1, $s1, 4 +mul $s2, $s1, $s3 \ No newline at end of file diff --git a/02test_all_inst.txt b/02test_all_inst.txt new file mode 100644 index 0000000..4d48b18 --- /dev/null +++ b/02test_all_inst.txt @@ -0,0 +1,11 @@ +20'd0: instruction <= 32'h3c104000; +20'd6: instruction <= 32'h2011000a; +20'd11: instruction <= 32'hae110010; +20'd16: instruction <= 32'h8e120010; +20'd21: instruction <= 32'h2231fffe; +20'd26: instruction <= 32'h02329820; +20'd31: instruction <= 32'h02529821; +20'd36: instruction <= 32'h02519822; +20'd41: instruction <= 32'h02338823; +20'd46: instruction <= 32'h26310004; +20'd51: instruction <= 32'h02339018; \ No newline at end of file diff --git a/02test_all_inst_mars.txt b/02test_all_inst_mars.txt new file mode 100644 index 0000000..f2898e7 --- /dev/null +++ b/02test_all_inst_mars.txt @@ -0,0 +1,11 @@ +3c104000 +2011000a +ae110010 +8e120010 +2231fffe +02329820 +02529821 +02519822 +02338823 +26310004 +02339018 \ No newline at end of file