Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Write E20 assembly instructions as described. When directed to write a pair of instructions, you should write two instructions that, when executed in
4. Write E20 assembly instructions as described. When directed to write "a pair" of instructions, you should write two instructions that, when executed in sequence, will have the described effect. Give each solution as both E20 assembly language program and the equivalent E20 machine language representation. Give each machine language instruction as a 16-bit binary number. Write each instruc- tion on a separate line. Write all 16 digits of each number. (a) Write an E20 instruction that will jump to the address identified by label target. When translating to machine language, assume that target has address 3, and that the current program counter is 9. (b) Write an E20 instruction that will jump to the address identified by label target, if register $4 is zero, and otherwise will proceed to the next instruction. When translating to machine language, assume that target has address 3, and that the current program counter is 9. (c) Write a pair of E20 instructions that will set the value of the memory cell identified by label isless to 1 when the value of $4 is less than 10 (decimal), and to 0 otherwise. When translating to machine language, assume that isless has address 3. (d) Write a pair of E20 instructions that will move the value stored at memory cell 29 into memory cell 30.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
a E20 Assembly Language JMP target Machine Language 0000000000000011 b E...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started