Question: I just need someone to answer these 100% correctly please, I need it to check my own answers later tonight when I get home. It

I just need someone to answer these 100% correctly please, I need it to check my own answers later tonight when I get home. It would really help me out! Thanks!

Chapter 1 Representing Data in a Computer

1. In a PC using an Intel 80x86 microprocessor, the number of

(a) bits in a byte is ___8___

(b) bits in a hex digit is ______

(c) bits in a doubleword is ______

(d) bits in a single precision floation point number is ______

(e) bytes in a word is ______

(f) bytes in a quadword is ______

(g) hex digits in a byte is ______

(h) hex digits in a doubleword is ______

(i) hex digits in a single precision floation point number is ______

2. Suppose that a word contains FF C8.

(a) Given that this word represents an unsigned decimal number, what is the decimal number?

(b) Given that this word is the 2's complement representation for a signed decimal number, what is the decimal number?

(c) Give the 2s complement of FF C8.

3. Suppose that a byte contains 20 (in hex).

(a) Given that this byte is the ASCII code for a character, what is the character?

(b) Given that this byte represents an unsigned decimal number, what is the decimal number?

(c) Given that this byte is the 2's complement representation for a signed decimal number, what is the decimal number?

4. Find the single precdision floating point representation of the decimal number -53.75. Give your answer as 8 hex digits.

5. Given that the ASCII code for the uppercase letter C is 43 in hex, what is the ASCiI code for a lowercase c?

6. Given that the ASCII code for the numeral 0 is 30 in hex, what is the ASCiI code for the numeral 6?

7 Give an example of an ASCII control character.

Chapter 2 Parts of a Computer Syatem

1. In a PC using an Intel 80x86 microprocessor, the number of bits in the EBX register is ______

2. In a PC using an Intel Pentium microprocessor, the number of bits in a physical memory address is ______

3. In a PC using an Intel Core 2 microprocessor, the number of bits in the RBP register is ______

4. In a PC using an Intel 8086, the number of bytes in a memory segment was ______

5. Briefly explain why you should use a text editor instead of a word processor to create an assembly language source program.

6. What is the name of the register in which 80x86 flags are stored?

7. Briefly explain the difference between a compiler and an interpreter.

8. Suppose that you buy a 64-bit PC with 8 GB of RAM. What is the 16-hex-digit of the last byte of installed memory?

Chapter 3 Elements of Assembly Language

1. For each of the four operands below, identify its mode as the correct choice of immediate, register, direct, or register indirect. Assume that the program contains the directive result DWORD ?

(a) mov DWORD Ptr [ebx], 100

________________ ________________

(b) mov result, ebx

________________ ________________

2. Find the initial values that the assembler will generate for each directive below. Write your answers using two hex digits for each byte generated.

(a) byteA BYTE 0ah

(b) byteB BYTE "xyz", 0

(c) dwordC DWORD 101011h, 101011b

(d) dwordD DWORD 3 DUP (101011)

(e) quadE QWORD -1

Chapter 4 Basic Instructions

1. Give the op code and number of bytes of code for each of these instructions.

(a) mov ecx, 984 Op Code______ Number of Bytes _____

(b) xchg eax, ecx Op Code______ Number of Bytes _____

(c) add eax, ecx Op Code______ Number of Bytes _____

(d) add eax, value Op Code______ Number of Bytes _____

(assume value references a doubleword in memory)

(e) inc edx Op Code______ Number of Bytes _____

(f) inc DWORD PTR [edx] Op Code______ Number of Bytes _____

(g) neg value Op Code______ Number of Bytes _____

(assume value references a doubleword in memory)

(h) neg edx Op Code______ Number of Bytes _____

(i) neg DWORD PTR [edx] Op Code______ Number of Bytes _____

(j) add ecx, 894 Op Code______ Number of Bytes _____

(k) imul eax, ecx Op Code______ Number of Bytes _____

(l) div value Op Code______ Number of Bytes _____

(assume value references a doubleword in memory)

(m) div DWORD PTR [edx] Op Code______ Number of Bytes _____

5. Submit .asm file in dropbox.

Starting with the windows32 framework, write a complete program that will input values for a, b and c and display the value of the expression ((a+b)*c)/(2*b)

Do not round. Input and output must be consistent with the samples shown at the bottom of this page.

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!