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...
icon
Related questions
Question

I need this answer, it's about Programming 3 : Flags, OFFSET, Arrays, JMP, LOOP

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.
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 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