Commit 04f71ad1 authored by Pavel Pisa's avatar Pavel Pisa

seminaries/qtmips/hazards-from-lecture:

Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent dd62167f
li $s1, 0x11111111
li $s2, 0x22222222
li $s3, 0x33333333
li $s4, 0x44444444
li $s5, 0x55555555
add $s0, $s2, $s3
and $t0, $s0, $s1
or $t1, $s4, $s0
sub $t2, $s0, $s5
li $s1, 0x11111111
li $s2, 0x22222222
li $s3, 0x33333333
li $s4, 0x44444444
li $s5, 0x55555555
addi $t1, $0, 0x1234
addi $t2, $0, 0x1234
beq $t1, $t2, skip
and $t0, $s0, $s1
or $t1, $s4, $s0
sub $t2, $s0, $s5
skip:
slt $t3, $s2, $s3
li $s1, 0x11111111
li $s2, 0x22222222
li $s3, 0x33333333
li $s4, 0x44444444
li $s5, 0x55555555
lw $s0, 40($0)
and $t0, $s0, $s1
or $t1, $s4, $s0
sub $t2, $s0, $s5
.org 40
.word 0x12345678
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment