.data loopcnt: .word 0x001e8484 .text addi $t0, $0, 0 addi $t5, $0, 0 addi $t4, $0, 30000 addi $t5, $0, 100 addi $t6, $0, 0 loop: beq $t6, $t5, forward add $t3, $t3, $t4 addi $t6, $t6, 1 j loop forward: sw $t0, 0x7ff0($0) addi $t0, $t0, 1 addi $t2, $0, 0 wait: beq $t2, $t3, forward addi $t2, $t2, 1 j wait