Treat the register names R1, ..., R7 as well as the memory cell names PC, N, Z and P as variables which each hold a 16-bit number. Treat M[a] as the memory array of 16-bit integers with the index a in the range: x0000, ..., xFFFF. Assume that N = 0, Z = 0, P = 1. After each of the following instructions give the Java-like assignment statement which performs what that specific instruction does in terms of the bits in the instruction itself and only using the names given above. If an instruction does nothing, write nothing Specify all offests with hexadecimal values. Extra spaces or no spaces between arithmetic operators will not invalidate an answer. 1. The instruction: 0000001000000001

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 19SA
icon
Related questions
Topic Video
Question

I need help finind the hexadecimal values

Treat the register names R1, ..., R7 as well as the memory cell names PC, N, Z and P as variables which each hold a 16-bit number.
Treat M[a] as the memory array of 16-bit integers with the index a in the range: x0000, ..., xFFFF.
Assume that N = 0, Z = 0, P = 1.
After each of the following instructions give the Java-like assignment statement which performs what that specific instruction does in terms of
the bits in the instruction itself and only using the names given above. If an instruction does nothing, write nothing
Specify all offests with hexadecimal values. Extra spaces or no spaces between arithmetic operators will not invalidate an answer.
1. The instruction: 0000001000000001
2. The instruction: 0011111000000011
Extra spaces or no spaces between arithmetic operators will not invalidate an answer.
3. The instruction: 0111101011000001
Extra spaces or no spaces between arithmetic operators will not invalidate an answer.
4. The instruction: 1011110000000000
Extra spaces or no spaces between arithmetic operators will not invalidate an answer.
Save
Reset
Transcribed Image Text:Treat the register names R1, ..., R7 as well as the memory cell names PC, N, Z and P as variables which each hold a 16-bit number. Treat M[a] as the memory array of 16-bit integers with the index a in the range: x0000, ..., xFFFF. Assume that N = 0, Z = 0, P = 1. After each of the following instructions give the Java-like assignment statement which performs what that specific instruction does in terms of the bits in the instruction itself and only using the names given above. If an instruction does nothing, write nothing Specify all offests with hexadecimal values. Extra spaces or no spaces between arithmetic operators will not invalidate an answer. 1. The instruction: 0000001000000001 2. The instruction: 0011111000000011 Extra spaces or no spaces between arithmetic operators will not invalidate an answer. 3. The instruction: 0111101011000001 Extra spaces or no spaces between arithmetic operators will not invalidate an answer. 4. The instruction: 1011110000000000 Extra spaces or no spaces between arithmetic operators will not invalidate an answer. Save Reset
Expert Solution
Step 1

Answer:

1).IINSTRUCTION :0001010110000111.

Hex number :EB 2F3F 6BEF

Hex signed 2 complements: 0000 00EB 2F3F 6BEF

Binary numbers: 11101011 00101111 00111111 01101011 11101111

Decimal to hexa decimal step :

Computer Engineering homework question answer, step 1, image 1

 

2).INSTRUCTION :0000001000000011.

Hex number: 3B9ACA0B

Hex signed 2’s complement: 3B9ACA0B

Binary number: 111011100110101100101000001011.

Decimal to hex calculation step:

Computer Engineering homework question answer, step 1, image 2

 

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning