P. 1
The 8051 Micro Controller and Embedded Systems Using Assembly and C-2nd-Ed

The 8051 Micro Controller and Embedded Systems Using Assembly and C-2nd-Ed

4.5

|Views: 336|Likes:
Published by api-27236542
The 8051 Microcontroller and Embedded Systems Using Assembly and C-2nd-ed.pdf by Muhammad Ali Mazidi, Janice Mazidi and Rolin McKinlay.......full book
The 8051 Microcontroller and Embedded Systems Using Assembly and C-2nd-ed.pdf by Muhammad Ali Mazidi, Janice Mazidi and Rolin McKinlay.......full book

More info:

Published by: api-27236542 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/21/2015

pdf

text

original

Show the stack and stack pointer from the following. Assume the
default stack area.

MOV R6, #25H
MOV R1, #12H
MOV R4, #0F3H
PUSH 6
PUSH 1
PUSH 4

Solution:

25

12

F3

After PUSH 4

SP = 0A

08

09

0A

0B

SP = 09

SP = 08

Start SP = 07

25

08

25

08

08

12

09

09

09

0A

0A

0A

0B

0B

0B

After PUSH 1

After PUSH 6

Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN

43

HANEL

8051
REGISTER
BANKS AND
STACK

Popping From
Stack

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->