Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I didn't understand the question at all. Please help me on that, thank you ! dresses in these questions are provided in hexadecimal format. Write

image text in transcribed

I didn't understand the question at all. Please help me on that, thank you !

dresses in these questions are provided in hexadecimal format. Write a program for the Basic Computer that counts the total number of I's in an array of N mbers that are stored in memory starting with the address F01. This total number of l's has to he stored by your program in the memory location at address EFF. The main program invokes a subroutine (called ONE) which counts the number of l's contained in a single memory location. For example, if the memory location contains the binary number 0000 0000 1001 1100, the value found by the subroutine will be 0000 0000 0000 0100, as the number of l's in 0000 0000 1001 1100 is 4. This result (the number of I's) is passed by the subroutine ONE to the calling program through the accumulator, and the address of the memory location being processed is passed to ONE through the accumulator AC, as well. Your subroutine ONE should be stored in the memory of your Basic Computer beginning with address A00, while the main program starts at address 9C0. Delore running the program, the operator loads N (the number of array's elements) at the memory location Foo which is then followed by the elements of the array to be processed. 4) Write the subroutine ONE in assembly language using instructions of the Basic Computer given in the Table 6 from the Annex; Write the main program that calls the subroutine ONE. NOTE: You are allow ou are allowed to use alternative ways to pass parameters to/from the subroutine, but explanations should be provided. dresses in these questions are provided in hexadecimal format. Write a program for the Basic Computer that counts the total number of I's in an array of N mbers that are stored in memory starting with the address F01. This total number of l's has to he stored by your program in the memory location at address EFF. The main program invokes a subroutine (called ONE) which counts the number of l's contained in a single memory location. For example, if the memory location contains the binary number 0000 0000 1001 1100, the value found by the subroutine will be 0000 0000 0000 0100, as the number of l's in 0000 0000 1001 1100 is 4. This result (the number of I's) is passed by the subroutine ONE to the calling program through the accumulator, and the address of the memory location being processed is passed to ONE through the accumulator AC, as well. Your subroutine ONE should be stored in the memory of your Basic Computer beginning with address A00, while the main program starts at address 9C0. Delore running the program, the operator loads N (the number of array's elements) at the memory location Foo which is then followed by the elements of the array to be processed. 4) Write the subroutine ONE in assembly language using instructions of the Basic Computer given in the Table 6 from the Annex; Write the main program that calls the subroutine ONE. NOTE: You are allow ou are allowed to use alternative ways to pass parameters to/from the subroutine, but explanations should be provided

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

What is the object-oriented design (OOD) approach?

Answered: 1 week ago