Question 4 : Part(a) : Assume that you have a processor with only two address instructions : For example : Instruction Comment ADD T,C TET+C Please convert the following logic into an assembly level...


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


Question 4 :<br>Part(a) : Assume that you have a processor with only two address instructions :<br>For example :<br>Instruction<br>Comment<br>ADD T,C<br>TET+C<br>Please convert the following logic into an assembly level program using two address<br>instruction.<br>X = B2 – 4AC<br>Answer :<br>Instruction<br>Comment<br>Part(b) : Display the data after performing the following operations :<br>Operation<br>Logical Shift Left 1<br>Logical Shift Right 4<br>Arithmetic Shift Right 2<br>Input<br>Output<br>0000 1111<br>0000 1111<br>1111 0000<br>Arithmetic Shift Left 2<br>1111 0000<br>Right Rotate 4<br>1111 0000<br>

Extracted text: Question 4 : Part(a) : Assume that you have a processor with only two address instructions : For example : Instruction Comment ADD T,C TET+C Please convert the following logic into an assembly level program using two address instruction. X = B2 – 4AC Answer : Instruction Comment Part(b) : Display the data after performing the following operations : Operation Logical Shift Left 1 Logical Shift Right 4 Arithmetic Shift Right 2 Input Output 0000 1111 0000 1111 1111 0000 Arithmetic Shift Left 2 1111 0000 Right Rotate 4 1111 0000

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here