The purpose of this assignment is to become familiar with the add and sub instructions. Addin' 'n Subtractin' 1. Assume the following values are stored at the indicated memory addresses and register Address Value Register Zeax Value ex5e0 OXED exsee ex504 ex78 Xebx 8X93FA1C9C exse8 Вx79 Xecx ex7 exsec OXF1 Xedx exA Fill in the following table, showing the effects of the indicated instructions, and showing wi register (state the smallest unit that is affected) or memory location that would be change its new value. Also, show the OF and CF values AFTER the instruction executes. Assume ea instruction is independent of the others. In other words, the initial conditions specified o hold for each of the instructions shown below. SHOW ALL VALUES IN HEXADECIMAI What Changed? list address or register) Instruction New Value (in hex) 1. subb $0xA, 12(%eax) 2. subb 8(%eax), %dl 3. addl %ebx, %ebx 4. addl %ecx, (Хеах) 5. addb %dl, 8(%eax) 6. subl %edx, 4(%eax) 7. subl %edx, %ecx 8. subb %bl, %bh

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
ADDING AND SUBTRACTING
The purpose of this assignment is to become familiar with the add and sub instructions.
Addin' 'n Subtractin'
1. Assume the following values are stored at the indicated memory addresses and registers:
Register
%eax
Address
Value
Value
Ox500
ØX93FA1C9C
Ox500
OXED
Ox504
Ox7B
%ebx
Ox508
Ox79
%ecx
Ox7
Ox50C
OXF1
%edx
OxA
Fill in the following table, showing the effects of the indicated instructions, and showing what
register (state the smallest unit that is affected) or memory location that would be changed and
its new value. Also, show the OF and CF values AFTER the instruction executes. Assume each
instruction is independent of the others. In other words, the initial conditions specified above
hold for each of the instructions shown below. SHOW ALL VALUES IN HEXADECIMAL.
What Changed?
(list address or register)
Instruction
New Value (in hex)
OF CF
1. subb $0xA, 12(%eax)
2. subb 8(%eax), %dl
3. addl %ebx, %ebx
4. addl %eсx, (%еаx)
5. addb %d1, 8(%eax)
6. subl %edx, 4(%eax)
7. subl %edx, Жесх
8. subb %bl, %bh
9. subb %bh, %bl
10. addb %bl, %bh
11. addb %bh, %bl
12. subl %eax, %eax
Transcribed Image Text:ADDING AND SUBTRACTING The purpose of this assignment is to become familiar with the add and sub instructions. Addin' 'n Subtractin' 1. Assume the following values are stored at the indicated memory addresses and registers: Register %eax Address Value Value Ox500 ØX93FA1C9C Ox500 OXED Ox504 Ox7B %ebx Ox508 Ox79 %ecx Ox7 Ox50C OXF1 %edx OxA Fill in the following table, showing the effects of the indicated instructions, and showing what register (state the smallest unit that is affected) or memory location that would be changed and its new value. Also, show the OF and CF values AFTER the instruction executes. Assume each instruction is independent of the others. In other words, the initial conditions specified above hold for each of the instructions shown below. SHOW ALL VALUES IN HEXADECIMAL. What Changed? (list address or register) Instruction New Value (in hex) OF CF 1. subb $0xA, 12(%eax) 2. subb 8(%eax), %dl 3. addl %ebx, %ebx 4. addl %eсx, (%еаx) 5. addb %d1, 8(%eax) 6. subl %edx, 4(%eax) 7. subl %edx, Жесх 8. subb %bl, %bh 9. subb %bh, %bl 10. addb %bl, %bh 11. addb %bh, %bl 12. subl %eax, %eax
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY