Question

In: Computer Science

a) Fill out the following table with the values in R0 and R1 after each instruction...

a) Fill out the following table with the values in R0 and R1 after each instruction is executed. Please use hexadecimal. The first line is completed for you. (4 pts)

Address

Instruction

R0

R1

010016

1110 0001 1111 1100

00FD16

000016

010116

0001 0010 0011 1101

010216

0011 0011 1111 0100

010316

0101 0010 0110 0000

010416

0010 0001 1111 0110

b) Explain what the instruction at each of the following addresses does. (4 pts)

  • Address 010116:
  • Address 010216:
  • Address 010316:
  • Address 010416:

c) What is the value stored in PC when the instruction at address 010216 is executed? (1 pt)

Solutions

Expert Solution

Answer a

Address

Instruction

R0

R1

010016

1110 0001 1111 1100

00FD16

000016

010116

0001 0010 0011 1101

00FD16 00FA16

010216

0011 0011 1111 0100

00FD16 00FA16

010316

0101 0010 0110 0000

00FD16 00FA16

010416

0010 0001 1111 0110

Mem[00FB‬16] 00FA16

Answer b

Address

Instruction

Description

010016

1110 0001 1111 1100

PC = 010116

LEA R0, FD

1110 - LEA (Load Effective Address)

000 - R0

1 1111 1100 - PC Offset

R0 = PC + Sign Extended Offset =

= 0000 0001 0000 0001 + 1111 1111 1111 1100

= 0000 0000 1111 1101

= 00FD16

010116

0001 0010 0011 1101

PC = 010216

0001 - ADD

001 - R1

000 - R0

1 1101 - Immed5

R1 = R0 + sign extended Immed5

=  0000 0000 1111 1101 + 1111 1111 1111 1101

= 0000 0000 1111 1010‬

= 00FA16

010216

0011 0011 1111 0100

PC = 010316

0011 - ST (Store)

001 - R1

1 1111 0100 - PC Offset

[PC + Sign extended PC offset] = R1

[0000 0001 0000 0011 + 1111 1111 1111 0100] = 00FA16

[00F716] =00FA16

010316

0101 0010 0110 0000

PC = 010416

0101 - AND

001 - R1

001 - R1

0 0000 - Immed5

R1= R1 AND Sign Exteneded Immed 5

= 00FA16 + 000016

= 00FA16

010416

0010 0001 1111 0110

PC = 010516

0010 - LD (Load)

000 - R0

1 1111 0110 - PC Offset

R0 = Mem[PC + Sign Extended PC Offset]

= Mem[010516 + FFF616]

= Mem[00FB‬16]

Answer c

PC = 010316


Related Solutions

Fill in all the remaining blanks in the table below and fill out the appropriate formula each.
Fill in all the remaining blanks in the table below and fill out the appropriate formula each.Residual maturityResidual MaturityInterest rate of Zero coupon bondPrice of Zero Coupon Bondone-year intrinsic forward interest ratepar yield18.00%27.00%36.00%
You must fill out the table below, then you must find the values for a, b1...
You must fill out the table below, then you must find the values for a, b1 and b2, finally you must determine how much the profits would be if you invest 10 thousand dollars in advertising and if you increase it to 20 sellers. REMEMBER all the procedures and formulas should appear. Y X1 X2      1 2 3 4 5 Year Sales $ promotion Sales person åX1 Y X12 X1 X2 X2Y X22 2017 18 2 2 2018 23...
fill in the missing future values in the following table for an ordinary annuity. Number of...
fill in the missing future values in the following table for an ordinary annuity. Number of Payments or Years Annual Interest Rate Present Value Annuity Future Value 7 8​% 0     ​$210.59 ​? 17 17​% 0 ​$1368.71 ​? 25 3.5%     0 ​$658.68 ​? 340 0.9​% 0 ​$496.92 ​? Number of Payments or Years Annual Interest Rate Present Value Annuity Future Value 7 88% 0     ​$210.59 ​$nothing ​(Round to the nearest​ cent.)
(22 pts) Find the experimental probability of rolling each sum. Fill out the following table: Sum...
(22 pts) Find the experimental probability of rolling each sum. Fill out the following table: Sum of the dice Number of times each sum occurred Probability of occurrence for each sum out of your 108 total rolls (record your probabilities to threedecimal places) 1 2 3 4 5 6 7 8 9 10 11
4. Examine Table 1 below. Fill-in the normal range of values for each of the variables...
4. Examine Table 1 below. Fill-in the normal range of values for each of the variables in the last (blank) row. Table 1. Lab values for Joyce Snyder. (Serum) Time Point BP Temp. (°F) Hemat. (%) Glucose (mg/dL) Na+ (mEq/L) K+ (mEq/L) AChE Activity (% of normal) Thyroxine (pmol/L) Serum Triiodothyronine (FT3) (pg/dL) Antibodies for Ach Receptors 1 105/65 99.4 °F 37.5% 88 mg/dL 139 mEq/L 3.8 mEq/L 44% 9.1 pmol/L 112 pg/dL none 2 108/70 100.1 °F 38.0% 100...
Reagent Data Table. Fill in the missing values for each entry. [4] note: if you were...
Reagent Data Table. Fill in the missing values for each entry. [4] note: if you were unable to determine the yield, you must give an example yield calculation Table 1. Reagent and Yield Data for the synthesis of butyl acetate from cesium acetate. Compound           Amount                   MW (g/mol)       mmoles     Stoichiometry/Comments acetaminophen          350 mg                                                                         ethyl iodide                 300 µL                                                                                       (d =          g/mL) NaOEt                        2.6 mL                                                                         ethanol                        2 mL                                                                        phenacetin product obtained:   ...
Given the following information, fill out the following table and determine what should be the optimal...
Given the following information, fill out the following table and determine what should be the optimal capital structure for Concours Corp. The company has $10 million in assets, a marginal tax rate of 30%, and each million in debt used causes Rd to increase by 1.0% and Rs to increase by .8%. Debt Rd Rs WACC 0 -- 12% 12% $1 Mill $2 Mill $3 Mill $4 Mill $5 Mill $6 Mill $7 Mill $8 Mill
Suppose r0=0x0F0F0F0F and r1=0xFEDCBA98, find the result of the following operations. Note that the below instructions...
Suppose r0=0x0F0F0F0F and r1=0xFEDCBA98, find the result of the following operations. Note that the below instructions are not part of a program. Each instruction runs independently, without influencing each other. i) EOR R4,R1,R0 ii) ORR R4,R1,R0
Copy and fill out the following table then describe the three classes of shock in terms...
Copy and fill out the following table then describe the three classes of shock in terms of how each is diagnosed and treated. Physiologic Variable Preload Pump Function Afterload Tissue Perfusion Frequency of Systole Clinical Measurement PCWP CO SVR SvO2 HR Hypovolemic Cardiogenic Distributive
VIII. a. Fill in the appropriate numerical values in the table below for the surplus or...
VIII. a. Fill in the appropriate numerical values in the table below for the surplus or shortage of baseball caps in the fourth column and the effect on price in the fifth column. Market Demand and Supply Schedules for Baseball Caps Price ($ per cap) Quantity demand-ed (caps per week) Quantity supplied (caps per week) Surplus (+) or Shortage (-) Effect on Price (up or down) $25 8000 14000 $20 9000 12000 $15 10000 10000 $10 11000 8000 $5 12000...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT