參數(shù)資料
型號(hào): AN1218
廠商: 飛思卡爾半導(dǎo)體(中國(guó))有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁(yè)數(shù): 39/56頁(yè)
文件大?。?/td> 417K
代理商: AN1218
Application Note
Appendix D — Using the Stack in a Subroutine to Compute a Cube
AN1218 Rev. 2
39
Appendix D — Using the Stack in a Subroutine to Compute a Cube
************************************************************
*
* File : CUBE.ASM
* Description :
* This program takes an 8-bit positive
* number, X_IN, and cubes it. The answer,
* Y_IN, is in a 24-bit format.
* This program also illustrates the
* value of using the stack for complex
* subroutines that use parameter passing,
* local variables, and return values.
* Stack Description:
* Given below is a diagram of the stack
* during the subroutine
* The numbers on the right specify the
* number of bytes above the stack pointer
*
* -------------------------
* SP
* VAR1 1
* VAR2 2
* A 3
* H 4
* X 5
* PC_HIGH 6
* PC_LOW 7
* Y_HIGH 8
* Y_MED 9
* Y_LOW 10
* X_IN 11
* -------------------------
*
* Note : Please consult the CPU08 Reference Manual
* for further HC08 instruction details
* Code is written for educational
* purposes only
*
************************************************************
ORG $80
X_IN RMB 1 ;8-bit number to be cubed
ORG $200
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 功能描述: