Electronic Components Datasheet Search
  English  ▼

X  

AN1218 Datasheet(PDF) 13 Page - Freescale Semiconductor, Inc

Part # AN1218
Description  HC05 to HC08 Optimization
PDF  56 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN1218 Datasheet(HTML) 13 Page - Freescale Semiconductor, Inc

Back Button AN1218 Datasheet HTML 9Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 10Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 11Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 12Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 13Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 14Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 15Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 16Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 17Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 56 page
background image
Application Note
Stack Pointer
AN1218 Rev. 2
13
requirements are also reduced. Significant C code efficiency can be
gained when utilizing these new stack pointer addressing modes.
If interrupts are disabled, the stack pointer can be used as a second
16-bit index register with 8- or 16-bit offsets.
Nine New Stack
Manipulation
Instructions, Detail
All the new CPU08 instructions that affect the stack pointer are listed
below. Examples for these instructions are given in AppendixC—New
CPU08 Stack Pointer Instructions
.
AIS
Add Immediate to Stack Pointer
Operation:
SP ← (SP) + (M)
Description: Adds the immediate operand to the stack
pointer SP. The immediate value is an 8-bit
two's complement signed operand. Prior to
addition to the SP, the operand is sign
extended to 16 bits. This instruction can be
used to create and remove a stack frame
buffer which is used to store temporary
variables.
PSHA
Push Accumulator onto Stack
Operation:
⇓ (A); SP ← (SP-$01)
Description: The contents of the accumulator are pushed
onto the stack at the address contained in
the stack pointer. The stack pointer is then
decremented to point at the next available
location in the stack. The contents of the
accumulator remain unchanged.
PSHH
Push Index Register H onto Stack
Operation:
⇓ (H); SP ← (SP-$01)
Description: The contents of the 8-bit high order index
register H are pushed onto the stack at the
address contained in the stack pointer. The
stack pointer is then decremented to point at
the next available location in the stack. The
contents of the H register remain
unchanged.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com