Question: Hello! If you could solve this Assembly Language Programming question with comments on what each line does, that'll be helpful! Rewrite the code and the

Hello! If you could solve this Assembly Language Programming question with comments on what each line does, that'll be helpful! Rewrite the code and the desired output needed.Thank you in advance!

CSP025 Assembly Language L09 Find Smallest

Main:

;Start

;Call loadArray

;Call sortPrint

;Stop

;loadarray:

;Enter

;N = 0

;Input Num

;L = Num

;While Num != 0

; IF Num > L

; THEN

; L = Num

; ENDIF

; A(N) = Num

; N++

; Input Num

;ENDWHILE

;Exit

;sortPrint:

;Enter

;Ct = 0

;WHILE Ct < N

; Call findSmallest

; Print smallest

; Ct++

;ENDWHILE

;Exit

;findSmallest:

;Enter

;I = 1

;S = 0

;WHILE I < N

; IF A(I) < A(S)

; THEN

; S = I

; ENDIF

; I++

;ENDWHILE

;smallest = A(S)

;A(S) = L

;Exit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!