參數(shù)資料
型號(hào): AN1218
廠商: 飛思卡爾半導(dǎo)體(中國(guó))有限公司
英文描述: HC05 to HC08 Optimization
中文描述: 以HC08的優(yōu)化HC05
文件頁(yè)數(shù): 51/56頁(yè)
文件大?。?/td> 417K
代理商: AN1218
Application Note
Appendix I — New CPU08 Signed Branch Instruction Examples
AN1218 Rev. 2
51
Appendix I — New CPU08 Signed Branch Instruction Examples
************************************************************
*
* File : SIGNBRA.ASM
* Description :
* Shows examples for new CPU08 signed branch
* instructions - BGE, BGT, BLE, BLT
* The examples demonstrate two's complement
* math with branching.
* Note : Please consult the CPU08 Reference Manual
* for further details on these instructions
* Code is written for educational
* purposes only
*
************************************************************
ORG $200
***** BGE - branch if greater than or equal
* A is predefined at $FF
LP_BGE CMP #$FF ; (A) - $FF, [ -1 - (-1) ]
BGE LP_BGT ; if A >= $FF, then
; branch to LP_BGT
BRA LP_BGE ; go to LP_BGE
***** BGT - branch if greater than
* A is predefined at $07
LP_BGT CMP #$FF ; (A) - $FF, [ 7 - (-1) ]
BGT LP_BLE ; if A > $FF, then
; branch to LP_BLE
BRA LP_BGT ; go to LP_BGT
***** BLE - branch if less than or equal
* A is predefined at $FF
LP_BLE CMP #$FF ; (A) - $FF, [ -1 - (-1) ]
BLE LP_BLT ; if A <= $FF, then
; branch to LP_BLT
BRA LP_BLE ; go to LP_BLE
***** BLT - branch if less than
* A is predefined at $FF
LP_BLT CMP #$07 ; $FF - $07, [ -1 - (7) ]
BLT DONE ; if A < $FF, then
; branch to DONE
BRA LP_BLT ; go to LP_BLT
DONE NOP
BRA DONE
***** Initialize the reset vector
ORG $FFFE
DW LP_BGE
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 功能描述: