Reference no: EM131048402
Question 1. Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times or add 6 three times. You should write and run the program using MARIE simulator. Also write the code with Address, Instruction, and Comments.
Question 2. You are designing an instruction set for your computer. All the instructions are of same size (11 bits long). The size of an address field is 4 bits. You have already designed five 2-address instructions and 40 1-address instructions. How many 0-address instructions can still you can fit? Justify your answer.
Question 3. Write code to implement the expression: A= (B + C) * (D - E) on 3-, 2-, 1- and 0-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands.
This assessment task covers topics on CPU operation and Instruction Set Architecture, and has been designed to ensure that you are engaging with the subject content on a regular basis. More specifically it seeks to assess your ability to:
- be able to demonstrate and appropriately use computer organisation and architecture terminologies;
- be able to investigate the internal operation of the Central Processing Unit (CPU) and describe how it is used to execute instructions;
- be able to investigate and describe in detail the essential elements of computer organisation including internal bus, memory, Input/Output ( I/O) organisations and interfacing standards and discuss how these elements function;
Metabolic rate and body mass for caterpillars
: Metabolic rate and body mass for caterpillars. Does the general relationship between metabolic rate and body mass described in Example 28.10 hold for tobacco hornworm caterpillars? The Minitab output (see page 28-24) was obtained by regressing the..
|
What is the educational path to achieve this career path
: What is the educational path to achieve this career path? Does any kind of certificate raise a person's chance to get a offer? Do you think the position you are offered is equivalent to the educational level you are in?
|
Nestling mass and nest humidity
: Nestling mass and nest humidity. Researchers investigated the relationship between nestling mass, measured in grams, and nest humidity index, measured as the ratio of total mass of water in the nest divided by nest dry mass, for two different grou..
|
Heights and weights for boys and girls
: Heights and weights for boys and girls. Suppose you are designing a study to investigate the relationship between height and weight for boys and girls. (a) Specify a model with parallel regression lines that could be used to predict height separat..
|
How many 0-address instructions can still you can fit
: Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times or add 6 three times.
|
Descriptive statistics and a scatterplot
: Potential jurors. Here are descriptive statistics and a scatterplot for the reporting percents in 2003 and 2004 from Table 28.2. (a) Use the descriptive statistics to compute the least-squares regression line for predicting the reporting percent fro..
|
Combine the two separate regression models
: Potential jurors. In Example 28.3 the indicator variable for year (x2= 0 for 1998 and x2= 1 for 2000) was used to combine the two separate regression models from Example 28.1 into one multiple regression model.
|
What is the internal rate of return on the project
: What are the cash flows associated with the project for each year? What is the NPV of the project? What is the internal rate of return on the project? Would you accept the project? Why or why not?
|
How much is the sales tax
: A2331 Final Exam- Practice Questions. If you pay for $25.00 for purchase which includes 11% sales tax. How much is the sales tax
|