Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
475 B
1
Indexable
Never
"li t3, 0\n\t"
"li t4, 16\n\t"

"addi %[lw_cnt], %[lw_cnt], 2\n\t" 

"loop_label:\n\t" 
"addi t3, t3, 1\n\t" 
"lh t0, 0(%[h])\n\t"
"lh t1, 0(%[x])\n\t"
"add t2, t0, t1\n\t" 
"sh t2, 0(%[y])\n\t"
"addi %[h], %[h], 2\n\t"
"addi %[x], %[x], 2\n\t"
"addi %[y], %[y], 2\n\t"
"addi %[arith_cnt], %[arith_cnt], 5\n\t"
"addi %[lw_cnt], %[lw_cnt], 2\n\t" 
"addi %[others_cnt], %[others_cnt], 1\n\t"
"addi %[sw_cnt], %[sw_cnt], 1\n\t"
"bne t3, t4,loop_label\n\t"


"end_of_loop:\n\t"