Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
329 B
2
Indexable
Never
"li s1, 0;"

"loop:;"



	"lw t1,0(%[h]);"

	"lw t0,0(%[x]);"

	"mul t0,t0,t1;"

	"add t0,t0,%[id];"	

	"sw t0,0(%[y]);"

	

	"addi %[h],%[h],2;"

	"addi %[x],%[x],2;"

	"addi %[y],%[y],2;"

	"addi s1,s1,1;"

	

"bne s1,%[arr_size],loop;"



"slli t0,%[arr_size],1;"

"sub %[h],%[h],t0;"

"sub %[x],%[x],t0;"

"sub %[y],%[y],t0;"
Leave a Comment