參數(shù)資料
型號: AN1218
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁數(shù): 37/56頁
文件大?。?/td> 417K
代理商: AN1218
Application Note
Appendix C — New CPU08 Stack Pointer Instructions
AN1218 Rev. 2
37
Appendix C — New CPU08 Stack Pointer Instructions
************************************************************
*
* File : SP.ASM
* Description :
* Shows examples for new CPU08 stack pointer
* instructions - AIS, PSHA, PSHH, PSHX
* PULA, PULH, PULX, TSX, TXS
* Not all addressing modes are shown.
* Note : Please consult the CPU08 Reference Manual
* for further details on these instructions
* Code is written for educational
* purposes only
*
************************************************************
ORG $200
***** AIS - add immediate to stack pointer
* SP is predefined at $0FE0
START AIS #$1F ; SP
$0FE0 + $1F
; SP = $0FFF
***** PSHA - push accumulator onto stack
* SP is predefined at $0FFF
* A = $80
PSHA ; ($0FFF)
$80
; SP
SP-$01
; SP = $0FFE
***** PSHH - push index register H onto stack
* SP is predefined at $0FFE
* H:X = $2050
PSHH ; ($0FFE)
$20
; SP
SP-$01
; SP = $0FFD
***** PSHX - push index register X onto stack
* SP is predefined at $0FFD
* H:X = $2050
PSHX ; ($0FFD) = $50
; SP
SP-$01
; SP = $0FFC
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 功能描述: