Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago