Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

What are the objectives and outcomes for this piece of work?

Answered: 1 week ago

Question

How efficient is your learning and development department?

Answered: 1 week ago