Assembly Program Execution Analysis
Assembly Program Execution Analysis
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