Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Fill out chart please. Assembler language Trace the following program until the

ID: 3824815 • Letter: F

Question

Fill out chart please. Assembler language

Trace the following program until the last instruction located at offset 0024. Assume that before DX are 0100h, the SS register contains 0 and the SP register 0200h, and that the begins and SP, SS, BP execution contents of Ax, C FEIBh and sih respectively. Build a table containing the contents of Ax, BX, Cx, DX, IP, and TOS. subprogram calling program BP.SP ARRAY INC AX 0230 Mov B8 00 00 Start: CXIBP 2 Mov Mov 89 C2. AX,[BP-4 MOV BX,[BP+61 BS 0003 0015 PUSH 50 MOV 1060B AX, 0140 B8 40 01 DX.AX ADD [BX], DX 50 MOV 1060F AX, 0150 B8 500 BX.2 ADD RET ARRAY INC ES EC02 AX,AC00 000h IP SI SS SP BP TOS Instruction AX BX CX DX CS

Explanation / Answer

Offset

Instruction

AX

BX

CX

DX

IP

SP

SS

BP

TOS

Initial conditions

0100

123A

FE1B

A981

0200

0100

0010

MOV AX, 0230

0230

123A

FE1B

A981

0013

0200

0100

0013

MOV DX, AX

0230

123A

FE1B

0230

0015

0200

0100

0015

MOV AX, 0300

0300

123A

FE1B

0230

0018

0200

0100

0018

PUSH AX

0300

123A

FE1B

0230

0019

01FE

0100

0200: 03

01FF: 00

0019

MOV AX,0140

0140

123A

FE1B

0230

001C

01FE

0100

001C

PUSH AX

0140

123A

FE1B

0230

001D

01FC

0100

01FE: 01

01FD: 40

001D

MOV AX, 0150

0150

123A

FE1B

0230

0020

01FC

0100

0020

PUSH AX

0150

123A

EF1B

0230

0021

01FA

0100

01FC: 01

01FB: 50

0021

CALL ARRAY_INC

0200

0302

0140

0100

0600

01FA

0100

0024

MOV AX, 4C00

4C00

0302

0140

0100

--

0100

INT 21

0100

ARRAY_INC:

0600

MOV BP, SP

0150

123A

EF1B

0230

0602

01FA

0602

MOV CX, [BP+2]

0150

123A

4001

0230

0605

0605

MOV AX, [BP+4]

0100

123A

0140

0230

0608

0608

MOV BX, [BP+6]

0100

0300

0140

0230

060B

060B

MOV DX, [BX]

0100

0300

0140

0100

060D

060D

ADD DX, AX

0200

0300

0140

0100

060F

060F

MOV [BX], DX

0200

0300

{0300: 0100H}

0140

0100

0611

0611

ADD BX, 2

0200

0302

0140

0100

0614

0614

RET 6

0200

0302

0140

0100

0024

0230:   1000H

0300:   0100H

0300: 0100H

Offset

Instruction

AX

BX

CX

DX

IP

SP

SS

BP

TOS

Initial conditions

0100

123A

FE1B

A981

0200

0100

0010

MOV AX, 0230

0230

123A

FE1B

A981

0013

0200

0100

0013

MOV DX, AX

0230

123A

FE1B

0230

0015

0200

0100

0015

MOV AX, 0300

0300

123A

FE1B

0230

0018

0200

0100

0018

PUSH AX

0300

123A

FE1B

0230

0019

01FE

0100

0200: 03

01FF: 00

0019

MOV AX,0140

0140

123A

FE1B

0230

001C

01FE

0100

001C

PUSH AX

0140

123A

FE1B

0230

001D

01FC

0100

01FE: 01

01FD: 40

001D

MOV AX, 0150

0150

123A

FE1B

0230

0020

01FC

0100

0020

PUSH AX

0150

123A

EF1B

0230

0021

01FA

0100

01FC: 01

01FB: 50

0021

CALL ARRAY_INC

0200

0302

0140

0100

0600

01FA

0100

0024

MOV AX, 4C00

4C00

0302

0140

0100

--

0100

INT 21

0100

ARRAY_INC:

0600

MOV BP, SP

0150

123A

EF1B

0230

0602

01FA

0602

MOV CX, [BP+2]

0150

123A

4001

0230

0605

0605

MOV AX, [BP+4]

0100

123A

0140

0230

0608

0608

MOV BX, [BP+6]

0100

0300

0140

0230

060B

060B

MOV DX, [BX]

0100

0300

0140

0100

060D

060D

ADD DX, AX

0200

0300

0140

0100

060F

060F

MOV [BX], DX

0200

0300

{0300: 0100H}

0140

0100

0611

0611

ADD BX, 2

0200

0302

0140

0100

0614

0614

RET 6

0200

0302

0140

0100

0024

0230:   1000H

0300:   0100H

0300: 0100H

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote