Question 5: Part(a) : what will be the output of the following in assembly language instructions : Memory address Instruction MOV Y,2 MUL Y,4 SUB Y,8 Answer 100 101 102 103 BRZ 110 104 BR 120 ADD Y,2...


please answer the following question (part a and b) and explain your answer



Question 5:<br>Part(a) : what will be the output of the following in assembly language<br>instructions :<br>Memory address<br>Instruction<br>MOV Y,2<br>MUL Y,4<br>SUB Y,8<br>Answer<br>100<br>101<br>102<br>103<br>BRZ 110<br>104<br>BR 120<br>ADD Y,2<br>BR 121<br>110<br>11<br>SUB Y,2<br>ADD Y,2<br>120<br>121<br>Part(b) : Assuming that each memory location in RAM is 16 bits i.e. 16 bit data<br>can stored at each location. Then for i) Direct Addressing Mode and ii) Indirect<br>Addressing Mode, what is the size of the memory that can be accessed using the<br>following instruction<br>Орcode<br>2 bits<br>Destination<br>3 bits<br>Memory<br>8 bits<br>Source<br>3 bits<br>i) Direct Addressing Mode<br>Answer :<br>ii) Indirect Addressing Mode<br>Answer :<br>

Extracted text: Question 5: Part(a) : what will be the output of the following in assembly language instructions : Memory address Instruction MOV Y,2 MUL Y,4 SUB Y,8 Answer 100 101 102 103 BRZ 110 104 BR 120 ADD Y,2 BR 121 110 11 SUB Y,2 ADD Y,2 120 121 Part(b) : Assuming that each memory location in RAM is 16 bits i.e. 16 bit data can stored at each location. Then for i) Direct Addressing Mode and ii) Indirect Addressing Mode, what is the size of the memory that can be accessed using the following instruction Орcode 2 bits Destination 3 bits Memory 8 bits Source 3 bits i) Direct Addressing Mode Answer : ii) Indirect Addressing Mode Answer :

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here