Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Computer organization, LAB Experiment No: 11 Exercise for the students based on the implementation of subroutines. Write a program in Assembly language that writes two
Computer organization, LAB
Experiment No: 11 Exercise for the students based on the implementation of subroutines. Write a program in Assembly language that writes two subroutines for calculating the maximum and minimum of an array of numbers. Then call these subroutines to calculate the maximum and minimum of two number shown below and writes them to the respective memory locations Program Code: ap start numl: num2: dw 20.30. 10. 50 40 maxl: dw min2: dw max2i dw endi nov ax, 0x4cooiterminate progran int 0x21 Procedure: Write the program shown in Fig above in Notepad and save it as file name exp11.asm Assemble the program using the command below: naam expl1.asm -o expi1.com 1. 2. 4. Compile the program using the command below s. afd exp 11.com Execute the instructions step by step and observe the contents of registers and record the observations. Observations and Results: Table 11.1 Student Name: Student ID Instructor Signature: Experiment No: 11 Exercise for the students based on the implementation of subroutines. Write a program in Assembly language that writes two subroutines for calculating the maximum and minimum of an array of numbers. Then call these subroutines to calculate the maximum and minimum of two number shown below and writes them to the respective memory locations Program Code: ap start numl: num2: dw 20.30. 10. 50 40 maxl: dw min2: dw max2i dw endi nov ax, 0x4cooiterminate progran int 0x21 Procedure: Write the program shown in Fig above in Notepad and save it as file name exp11.asm Assemble the program using the command below: naam expl1.asm -o expi1.com 1. 2. 4. Compile the program using the command below s. afd exp 11.com Execute the instructions step by step and observe the contents of registers and record the observations. Observations and Results: Table 11.1 Student Name: Student ID Instructor Signature Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started