Мне удалось получить пользовательский ввод, как показано в моем коде, но я отчаянно не в состоянии получить наименьшее число. Большое спасибо...
Вот инструкции для этого.
«Напишите программу на ассемблере, которая будет считывать от пользователя три 32-битных целых числа со знаком. Определите наименьшее из этих трех чисел и отобразите этот результат. Не используйте циклы. Запрашивайте у пользователя каждое введенное целое число».
.data
Msg1: .asciiz "Enter the first integer: "
Msg2: .asciiz "Enter the second integer: "
Msg3: .asciiz "Enter the third integer: "
Msg4: .asciiz "the the smallest numberis: "
.text
# Print the first message
li $v0, 4
la $a0, Msg1
syscall
# Prompt the user to enter the first integer
li $v0, 5
syscall
# Store the first integer in $t0
move $t0, $v0
# Print the second message
li $v0, 4
la $a0, Msg2
syscall
# Prompt the user to enter the second integer
li $v0, 5
syscall
# Store the first integer in $t1
move $t1, $v0
# Print the third message
li $v0, 4
la $a0, Msg3
syscall
# Prompt the user to enter the third interger
li $v0, 5
syscall
# Store the first integer in $t0
move $t2, $v0
# Determine the smallest Number
slt $s0, $t1, $t0
beq $s0, $zero, L1
cmov
, или если вам нужно построить его из SUB/SRA/AND). - person Peter Cordes   schedule 12.10.2017