1. Given the assembly language program below, run it and list the flags status afier cach instruction PROGRAM TOFOV) SFPL) ZFZR) AFAC PF(PE)| CCY) mov ax, Bh add ax, h sub ax, 1Oh add ax, 112 neg ax mov bh, 6Ch add bh, 95h mov al,2 sub al,3 2 What will be the values of the Overflow flag in the program given below? mov al, 80h add al, 92h AL = mov al,-2 add al, +127 I AL OF = OF 3. Define the following amays a A byte type amay named DONKEY with 3 items 45, 45h and 4Ah. b. A word type aray named FIONA with 5 items 45, 45h, 444h, 4A4Bh and 44Ah a A double-word type array named SHREK with 5 items initialired to 0
1. Given the assembly language program below, run it and list the flags status afier cach instruction PROGRAM TOFOV) SFPL) ZFZR) AFAC PF(PE)| CCY) mov ax, Bh add ax, h sub ax, 1Oh add ax, 112 neg ax mov bh, 6Ch add bh, 95h mov al,2 sub al,3 2 What will be the values of the Overflow flag in the program given below? mov al, 80h add al, 92h AL = mov al,-2 add al, +127 I AL OF = OF 3. Define the following amays a A byte type amay named DONKEY with 3 items 45, 45h and 4Ah. b. A word type aray named FIONA with 5 items 45, 45h, 444h, 4A4Bh and 44Ah a A double-word type array named SHREK with 5 items initialired to 0
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
I need this answer, it's about
![4. Referring to the array definitions in Question 3, state the following
values in the register.
a. MOV AL,DONKEY
; AL -
b.
MOV AL, DONKEY+2
:AL-
MOV AX,FIONA
;AX-
C.
d.
MOV AX, FIONA+2
;AX -
e. MOV AX, FIONA+4
;AX -
f.
MOV EAX, SHREK
;EAX -
E MOV AH,FIONA+8
: AH -
MOV EAX,0
h MOV AX, FIONA+2
MOV SHREK, EAXX
;EAX -
;AX -
SHREK -
5. Referring to the array definitions in Question 3, write the appropriate
instruction(s) to achieve the required results.
; BL - 45h
b.
;BX - 004Ah
; SHREK+4 - 00004A4BH
C.
6. Referring to the array definitions in Question 3, write a program to sum
array DONKEY.
7. Referring to the array definitions in Question 3, write a program to sum
array FIONA.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fce0115da-a35c-43dd-9de8-4c854747a682%2F575e855b-7df5-4a5d-be7c-b7c8b710b845%2F3vdovzj_processed.png&w=3840&q=75)
Transcribed Image Text:4. Referring to the array definitions in Question 3, state the following
values in the register.
a. MOV AL,DONKEY
; AL -
b.
MOV AL, DONKEY+2
:AL-
MOV AX,FIONA
;AX-
C.
d.
MOV AX, FIONA+2
;AX -
e. MOV AX, FIONA+4
;AX -
f.
MOV EAX, SHREK
;EAX -
E MOV AH,FIONA+8
: AH -
MOV EAX,0
h MOV AX, FIONA+2
MOV SHREK, EAXX
;EAX -
;AX -
SHREK -
5. Referring to the array definitions in Question 3, write the appropriate
instruction(s) to achieve the required results.
; BL - 45h
b.
;BX - 004Ah
; SHREK+4 - 00004A4BH
C.
6. Referring to the array definitions in Question 3, write a program to sum
array DONKEY.
7. Referring to the array definitions in Question 3, write a program to sum
array FIONA.
![1. Given the assembly language program below, run it and list the flags
status afier each instruction.
PROGRAM
OFOV) | SF(PL) ZFZR)| AF(AC) PF(PE) | CFCY)
mov ax, 8h
add ax, 8h
sub ax, 10h
add ax, 112
neg ax
mov bh, 6Ch
add bh, 95h
mov al, 2
sub al,3
2. What will be the values of the Overflow flag in the program given
below?
nov al, 80h
add al, 92h i AL =
mov al,-2
add al,+127 AL =
OF
OF
3. Define the following arrays:
a A byte type aray named DONKEY with 3 items 45, 45h and
4Ah.
b. A word type array named FIONA with 5 items 45, 45h 444h,
AA4BH and 44AH.
a A double-word type array named SHREK with 5 items
initialized to 0](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fce0115da-a35c-43dd-9de8-4c854747a682%2F575e855b-7df5-4a5d-be7c-b7c8b710b845%2Fnwyo4fd_processed.jpeg&w=3840&q=75)
Transcribed Image Text:1. Given the assembly language program below, run it and list the flags
status afier each instruction.
PROGRAM
OFOV) | SF(PL) ZFZR)| AF(AC) PF(PE) | CFCY)
mov ax, 8h
add ax, 8h
sub ax, 10h
add ax, 112
neg ax
mov bh, 6Ch
add bh, 95h
mov al, 2
sub al,3
2. What will be the values of the Overflow flag in the program given
below?
nov al, 80h
add al, 92h i AL =
mov al,-2
add al,+127 AL =
OF
OF
3. Define the following arrays:
a A byte type aray named DONKEY with 3 items 45, 45h and
4Ah.
b. A word type array named FIONA with 5 items 45, 45h 444h,
AA4BH and 44AH.
a A double-word type array named SHREK with 5 items
initialized to 0
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY