-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_program_decode.txt
16 lines (16 loc) · 1.12 KB
/
test_program_decode.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- OP_LW & "00000" & "00001" & "0000000000000001"; -- lw r1, 1(r0) (value=2)
-- OP_LW & "00000" & "00010" & "0000000000000010"; -- lw r1, 2(r0) (value=10)
-- OP_LW & "00000" & "00010" & "0000000000000010"; -- lw r1, 2(r0) (value=10)
-- OP_RRR & "00001" & "00010" & "00011" & "00000" & FUNC_ADD; -- add r3, r1, r2
-- OP_SW & "00000" & "00011" & "0000000000000101"; -- sw r3, 5(r0)
-- OP_BEQ & "00000" & "00000" & "0000000000000010"; -- beq r0, r0, 2
-- OP_SW & "00000" & "00011" & "0000000000000011"; -- sw r3, 3(r0)
-- OP_SW & "00000" & "00011" & "0000000000000011"; -- sw r3, 4(r0)
-- OP_SW & "00000" & "00011" & "0000000000000110"; -- sw r3, 6(r0)
-- OP_SW & "00000" & "00011" & "0000000000000111"; -- sw r3, 7(r0)
-- OP_LUI & "00000" & "00011" & "0000000000000110"; -- lui r3, 6
-- OP_SW & "00000" & "00011" & "0000000000001000"; -- sw r3, 8(r0)
-- OP_RRR & "00001" & "00011" & "00011" & "00000 & FUNC_ADD; -- add, r3, r1, r3
-- OP_SW & "00000" & "00011" & "0000000000001001"; -- sw r3, 9(r0)
-- OP_BEQ & "00000" & "00000" & "1111111111111101"; -- beq r0, r0, -3
-- OP_SW & "00000" & "00011" & "0000000000001010"; -- sw r3, 10(r0)