Demo entry 6655104

123

   

Submitted by 2131 on Oct 25, 2017 at 18:24
Language: ABNF. Code size: 410 Bytes.

.data
array: .space 400

.text
	la $t0, array
	li $t1, 0
	
store:
	addiu $t1, $t1, 1
	beq $t1, 101, initial
	sw $t1, 0($t0)
	addiu $t0, $t0, 4
	j store

initial:
	addiu $t0, $t0, -4
	addiu $t1, $t0, -396

reverse:
	beq $t4, 50, end
	addiu $t4, $t4, 1
	lw $t2, 0($t0)
	lw $t3, 0($t1)
	sw $t3, 0($t0)
	sw $t2, 0($t1)
	addiu $t0, $t0, -4
	addiu $t1, $t1, 4
	j reverse

end:
	
	
	

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).