參數(shù)資料
型號(hào): AN1218
廠商: 飛思卡爾半導(dǎo)體(中國(guó))有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁(yè)數(shù): 19/56頁(yè)
文件大?。?/td> 417K
代理商: AN1218
Application Note
Stack Pointer
AN1218 Rev. 2
19
a local variable. The stack of these complex subroutines follow the
generalized structure shown in
Figure 6
.
Figure 6
shows the stack
before the subroutine initialization, before entering the subroutine, and
during the subroutine. The actual cube subroutine is written in the
following section of code. A diagram of the stack during its execution is
given within the code listing.
Code Example
Refer to
Appendix D — Using the Stack in a Subroutine to Compute
a Cube
for an example of modular subroutine code that efficiently
computes the cube of an 8-bit positive number.
STACK
SP DURING SUBROUTINE
$00f7
LOCAL VARIABLE 1
$00F8
LOCAL VARIABLE 2
$00F9
ACCUMULATOR A
$00FA
INDEX REGISTER X
$00FB
PROGRAM COUNTER HIGH
$00FC
SP DURING SUBROUTINE
PROGRAM COUNTER LOW
$00FD
SP BEFORE
SUBROUTINE INITIALIZATION
RETURN VALUE
$00FE
PASSED PARAMETER
$00FF
Figure 6. Stack Structure of a Complex Subroutine
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guā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
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN122677 制造商:AN# - MILITARY 功能描述:
AN122683 制造商:AN# - MILITARY 功能描述:
AN122694 制造商:AN# - MILITARY 功能描述:
AN122717 制造商:AN# - MILITARY 功能描述:
AN122718 制造商:AN# - MILITARY 功能描述: