Find and print the minimum and maximum from a list or numbers. You may use the follwoing code for your program. You ar
Posted: Fri May 20, 2022 5:14 pm
Find and print the minimum and maximum from a list or
numbers. You may use the follwoing code for your
program. You are not required to, but must use the numbers
provided below for your array.
.data
array: .word
13, 34, 16, 61, 28
.word 24,
58, 11, 26, 41
.word 19, 7,
38, 12, 13
len:
.word 15
hdr:
.ascii "\nProgram to find max
and"
.asciiz "
min\n\n"
newLine: .asciiz
"\n"
a1Msg: .asciiz
"min = "
a2Msg: .asciiz
"max = "
numbers. You may use the follwoing code for your
program. You are not required to, but must use the numbers
provided below for your array.
.data
array: .word
13, 34, 16, 61, 28
.word 24,
58, 11, 26, 41
.word 19, 7,
38, 12, 13
len:
.word 15
hdr:
.ascii "\nProgram to find max
and"
.asciiz "
min\n\n"
newLine: .asciiz
"\n"
a1Msg: .asciiz
"min = "
a2Msg: .asciiz
"max = "