Question: Write an assembly language program in masam651 that performs the following in the given sequence. I. Takes 10 32bit signed numbers from the user and
Write an assembly language program in masam651 that performs the following in the given sequence.
I. Takes 10 32bit signed numbers from the user and store them in the array adw1 SDWORD 10 DUP (0) using indirect addressing and LOOP instruction.
II. Isolate negative numbers from array adw1 SDWORD 10 DUP (0) in the array NEGA SDWORD 10 DUP(0) and odd numbers in the array ODD SDWORD 10 DUP (0) using indexed addressing and LOOP instructions.
III. Then scan the array adw1 SDWORD 10 DUP (0) for the first positive and first zero values and display their indices on the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
