參數(shù)資料
型號: AN1218
廠商: 飛思卡爾半導(dǎo)體(中國)有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁數(shù): 47/56頁
文件大?。?/td> 417K
代理商: AN1218
Application Note
Appendix G — New Branch Instruction Examples
AN1218 Rev. 2
47
* HC08 code *
LP2 CBEQA #$50,LPC ;4,3 if #$50 = (A), then LPC
BRA LP2 ; go to LP2
* Total CPU05 cycles, bytes = 5,4
* Total CPU08 cycles, bytes = 4,3
***** CBEQX - compare and branch if equal, index
* Index register X is predefined at $60
* HC05 code *
LPC CPX #$60 ;2,2 X - $60
BEQ LP3 ;3,2 if X = $60, then LP3
BRA LPC ; go to LPC
* HC08 code *
LP3 CBEQX #$60,LPD ;4,3 if X = $60, then LPD
BRA LP3 ; go to LP3
* Total CPU05 cycles, bytes = 5,4
* Total CPU08 cycles, bytes = 4,3
***** DBNZ - decrement and branch if not zero
* HC05 code *
* Memory location $A0 is predefined at $08
LPD NOP ; used here to represent any
; number of instructions
DEC $A0 ;5,2 decrement ($A0)
BNE
LPD
;3,2 if ($A0) not zero, then LPD
* HC08 code *
* Memory location $A0 is predefined at $08
LP4 NOP ; used here to represent any
; number of instructions
DBNZ $A0,LP4 ;5,3 ($A0) = ($A0) - 1
;
if ($A0) not zero, then LP4
* Total CPU05 cycles, bytes = 8,4
* Total CPU08 cycles, bytes = 5,3
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 功能描述: