.data msg_eq: .asciiz "The numbers are equal\n" msg_less: .asciiz "The first number is smaller\n" msg_more: .asciiz "The first number is greater\n" .text .globl main main: li $t0, 10 li $t1, 20 beq $t0, $t1, numbers_equal slt $t2, $t0, $t1 bne $t2, $zero, first_smaller li $v0, 4 la $a0, msg_more syscall j exit numbers_equal: li $v0, 4 la $a0, msg_eq syscall j exit first_smaller: li $v0, 4 la $a0, msg_less syscall exit: li $v0, 10 syscall