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
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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5380575a-a3d1-4932-bbef-eddd3d1068fa%2F3c1ef522-902f-4394-8385-bfadee69d2e2%2F46008id_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
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 :
2).INSTRUCTION :0000001000000011.
Hex number: 3B9ACA0B
Hex signed 2’s complement: 3B9ACA0B
Binary number: 111011100110101100101000001011.
Decimal to hex calculation step:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning