For a data segment there are 2 lists in the following memory demonstration(from 0007 offset address) with 5 elements called LIST1(list type:byte)  and another list with 4 elements called LIST2(list type: Word), respectively. a) write how registers change when the following code is executed.         MOV DI,2                                                   DI  =         LEA BX, LIST2                                             BX =          MOV DX, [BX][DI]+1                                 DX =          MOV BX, OFFSET LIST1                           BX =          INC DI                                                         DI  =          SUB BX, DI                                                  BX =          MOV CL, LIST1[BX]                                   CL =

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

For a data segment there are 2 lists in the following memory demonstration(from 0007 offset address) with 5 elements called LIST1(list type:byte)  and another list with 4 elements called LIST2(list type: Word), respectively.

a) write how registers change when the following code is executed.

        MOV DI,2                                                   DI  =

        LEA BX, LIST2                                             BX = 

        MOV DX, [BX][DI]+1                                 DX = 

        MOV BX, OFFSET LIST1                           BX = 

        INC DI                                                         DI  = 

        SUB BX, DI                                                  BX = 

        MOV CL, LIST1[BX]                                   CL = 

b) Write code that copies 1 byte sized data that is in 0014 address, from 000DH address.

c) Write code that copies 3rd element of LIST2 to 0th element of LIST2.

Offset
Memory
Content
Address
0007H
ОАЕН
0008H
OADH
0009H
OACH
000AH
ОАВН
000BH
ОААН
000CH
OA9H
000DH
OASH
000EH
OA7H
000FH
0A6H
0010H
OA5H
0011H
0Α4Η
0012H
ОАЗН
0013H
OA2H
0014H
00A2H
Transcribed Image Text:Offset Memory Content Address 0007H ОАЕН 0008H OADH 0009H OACH 000AH ОАВН 000BH ОААН 000CH OA9H 000DH OASH 000EH OA7H 000FH 0A6H 0010H OA5H 0011H 0Α4Η 0012H ОАЗН 0013H OA2H 0014H 00A2H
Expert 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