Question: Consider a 6 - bit twos complement representation of integers. Show an example of each of the following: i . Adding two numbers together with

Consider a 6-bit twos complement representation of integers. Show an example of each
of the following:
i. Adding two numbers together with a carry out of 1 with overflow.
ii. Adding two numbers together with a carry out of 1 but no overflow.
iii. Adding two numbers together with a carry out of 0 with overflow.
iv. Adding two numbers together with a carry out of 0 but no overflow.
2. Find the single precision floating point representation of 86.1. Give answer in
hexadecimal form.
3. Find the double precision floating point precision of 1012.125. Give answer in
hexadecimal form.
DEBUG EXERCISES
4. Get into DEBUG.
a. Enter the command: e 20A 40
Explain what this command does.
b. Enter the command: d 20A
What does this command do? How does what you see on the screen relate back to the
command in a.?
c. Enter the command: u 20A,20A
Explain what this command does.
Exit from DEBUG.
6. Write an assembly language program suitable for DEBUG that adds the following four
hexadecimal numbers together and puts the result in AX:
154BB 0B 2
Exit from DEBUG.
7. Get into DEBUG and enter the following assembly language instructions using the A
command:
mov ax,-10
mov bh,-21
mov bl 17
nop
Run the program using the T command.
a. Notice the value placed in ax. CLEARLY EXPLAIN how was that hexadecimal value arrived
at? Show your work.
b. How is the final value arrived at in BX? Again, show.
Exit DEBUG
8. Get into DEBUG.
a. Execute the following command: e 1005d 3c 0f 50
What did this command do?
b. Use the A command to enter the following program:
mov ch,[101]
mov cl,5
mov bx,0
mov bl,[100]
inc bx
mov ax,[102]
inc ax
nop
Execute the program using the T command.
c. Show the final values of ax, bx and cx. Explain in detail how each arrived at their particular values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!