English
Language : 

AN1218 Datasheet, PDF (43/56 Pages) Freescale Semiconductor, Inc – HC05 to HC08 Optimization
Freescale Semiconductor, Inc.
Application Note
Appendix E — New CPU08 MOV Instruction Examples
***** Move contents of Indexed to Direct mem location, post inc
Xreg
*
HC05
LDX
#$80
LDA
,X
STA
$90
INCX
*
; X ← $80
;3,1 A ← (X)
;4,2 ($90) ← (A)
;3,1 X ← X + 1
*
HC08
LDX
#$80
MOV
X+,$90
*
; X ← $80
;4,2 ($90) ← (X)
; X←X+1
*
Total CPU05 cycles, bytes
= 10,4
*
Total CPU08 cycles, bytes
= 4,2
***** Move Direct mem contents to Indexed location, post inc
Xreg
*
HC05
LDX
#$90
LDA
$80
STA
,X
INCX
*
; X ← $90
;3,2 A ← ($80)
;4,1 (X) ← (A)
;3,1 X ← X + 1
*
HC08
LDX
#$90
MOV
$80,X+
*
; X ← $90
;4,2 (X) ← ($80)
; X←X+1
*
Total CPU05 cycles, bytes
= 10,4
*
Total CPU08 cycles, bytes
= 4,2
*****
Initialize the reset vector
ORG
$FFFE
DW
START
AN1218 Rev. 2
43
For More Information On This Product,
Go to: www.freescale.com