1. What will be the value in EDX after each of the lines marked (a) and (b) execute? .data one WORD 8002h two WORD 4321h .code mov edx, 21348041h movsx edx, one movsx edx, two 2. What will be the value in EAX after the following lines execute? mov eax, 30020000h dec ax ; (a) ; (b) 3. What will be the value of the Parity flag after the following lines execute? mov al, 1 add a1,3
1. What will be the value in EDX after each of the lines marked (a) and (b) execute? .data one WORD 8002h two WORD 4321h .code mov edx, 21348041h movsx edx, one movsx edx, two 2. What will be the value in EAX after the following lines execute? mov eax, 30020000h dec ax ; (a) ; (b) 3. What will be the value of the Parity flag after the following lines execute? mov al, 1 add a1,3
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...
Related questions
Question
assemby please
Expert Solution
Step 1: 1st Solution
1)
8002=10000000 00000010 (16 bit). Sign is negative
4321=01000011 00100001 (16 bit) Sign is positive
MOVSX copies the content of the source operand into the destination operand. Also extends the sign from 16-bit to 32-bit.
.data |
EDX |
one WORD 8002h |
|
two WORD 4321h |
|
.code |
|
mov edx,21348041h |
21348041h (00100001 00110100 10000000 01000001b) |
movsx edx,one |
FFFF8002h (11111111 11111111 10000000 00000010b) |
movsx edx,two |
00004321h (00000000 00000000 01000011 00100001 b) |
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY