Electronic Components Datasheet Search
  English  ▼

X  

AN1218 Datasheet(PDF) 51 Page - Freescale Semiconductor, Inc

Part # AN1218
Description  HC05 to HC08 Optimization
PDF  56 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN1218 Datasheet(HTML) 51 Page - Freescale Semiconductor, Inc

Back Button AN1218 Datasheet HTML 47Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 48Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 49Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 50Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 51Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 52Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 53Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 54Page - Freescale Semiconductor, Inc AN1218 Datasheet HTML 55Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 51 / 56 page
background image
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
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com