0% found this document useful (0 votes)
8 views3 pages

Assembly Program Execution Analysis

The document contains assembly program instructions that manipulate data stored in specific memory locations (20, 21, and 22). It outlines the operations performed on the accumulator (Acc) and the stack after each instruction execution. The instructions include loading, adding, multiplying, storing, and pushing/popping values, demonstrating basic assembly language operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Assembly Program Execution Analysis

The document contains assembly program instructions that manipulate data stored in specific memory locations (20, 21, and 22). It outlines the operations performed on the accumulator (Acc) and the stack after each instruction execution. The instructions include loading, adding, multiplying, storing, and pushing/popping values, demonstrating basic assembly language operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Q2) Draw the Acc content and Stack content for the following assembly program after each

instruction
execution where X, Y and Z stored in 20, 21 and 22 memory locations.

LDA (20)

ADA (20)

PUSH

PUSH

LDA (21)

MUL (21)

STA (22)

POP

ADA (22)

STA (22)

POP

ADA (22)

PUSH

HLT

Q2) Draw the Acc content and Stack content for the following assembly program after each instruction
execution where X, Y and Z stored in 20, 21 and 22 memory locations.
LDA (20)

ADA (21)

PUSH

PUSH

STA (22)

POP

MUL (22)

PUSH

LAD (22)

POP

STA (22)

HLT

Q3) Draw the Acc content and Stack content for the following assembly program after each instruction
execution where X, Y and Z stored in 20, 21 and 22 memory locations.

LDA (20)

ADA (20)

PUSH

LDA (21)

MUL (20)

PUSH

ADA (20)

STA (22)

POP

ADA (22)
STA (22)

PUSH

LDA (21)

ADA (22)

POP

MUL (20)

STA (22)

HLT

You might also like