İşinize yarar mı bilmiyorum ama ChatGPT çıktısı paylaşıyorum.

.data
array: .word 4, 7, 2, 9, 1, 5, 3, 8, 6, 0 # initialize array with values

.text
.globl main
main:
li $t0, 0 # $t0 = index i
lw $t1, array($t0) # $t1 = array[i]
li $t2, 1 # $t2 = index j

loop:
beq $t2, 10, done # if j == 10, exit loop
lw $t3, array($t2) # $t3 = array[j]
bge $t3, $t1, greater # if array[j] >= max, branch to greater
addi $t2, $t2, 1 # increment j
j loop # jump back to loop

greater:
move $t1, $t3 # set max equal to array[j]
addi $t2, $t2, 1 # increment j
j loop # jump back to loop

done:
li $v0, 10 # exit program
syscall