參數(shù)資料
型號: AN1218
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁數(shù): 13/56頁
文件大?。?/td> 417K
代理商: AN1218
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. Examplesfortheseinstructionsaregivenin
Appendix C — New
CPU08 Stack Pointer Instructions
.
AIS
Add Immediate to Stack Pointer
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.
Operation:
PSHA
Push Accumulator onto Stack
(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.
Operation:
PSHH
Push Index Register H onto Stack
(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.
Operation:
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關PDF資料
PDF描述
AN1746 Migrating from the MC68HC705K1 to the MC68HC705KJ1
AN2635 On-Chip FLASH Programming Routines
AN4009 ALARM IC SAMPLE APPLICATIONS
ARP2805D/SF 1-OUTPUT 150 W DC-DC REG PWR SUPPLY MODULE
AS1977-T nPower Single Comp. Open-Drain; Package Type: SOT23-5
相關代理商/技術參數(shù)
參數(shù)描述
AN122677 制造商:AN# - MILITARY 功能描述:
AN122683 制造商:AN# - MILITARY 功能描述:
AN122694 制造商:AN# - MILITARY 功能描述:
AN122717 制造商:AN# - MILITARY 功能描述:
AN122718 制造商:AN# - MILITARY 功能描述: