Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS User Manual page 37

Application development system v2.0
Table of Contents

Advertisement

Programming On-board Flash Memory
cmp.l
ble
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
;*****************************************
; Input Parameters:
;
a0 - (Long) Source Address
;
a1 - (Long) Target Address
;
d0 - (Long) Byte Size
;
a5 - (long) Flash Starting Address Offset 1
;
a6 - (long) Flash Starting Address Offset 2
;*****************************************
move.l
move.l
clr.b
clr.l
VERIFIY
cmp.b
bne
ECHO
ECHO
NO_V
add.b
move.w
move.w
cmp.w
bne
add.l
cmp.l
ble
bra
****************************************************************************
TXD_RDY
move.l
POLLTXD
btst.b
beq.s
move.w
LP_RDY
sub.w
bne.b
move.l
rts
****************************************************************************
FINISH
ECHO
ECHO
ECHO
C-36
Freescale Semiconductor, Inc.
d0,d1
; if d1<=d0, bra PROGRAM
PROGRAM
a0,a2
;a2 & a3 are used to store the starting address
a1,a3
;for comparing.
d5
;clear d5 as ECHO counter
d1
;clear d1 as counter
#0,d5
NO_V
'V'
0
#1,d5
(a2)+,d2
(a3)+,d3
d2,d3
ERROR
#2,d1
d0,d1
; if d1<=d0, bra CHECK
VERIFIY
FINISH
d7,-(a7)
; Push d7
#5,$FFFFF906
POLLTXD
; bra if TXAVAIL not SET
#$0FFF,d7
#1,d7
LP_RDY
(a7)+,d7
; Restore d7
'\n'
'P'
'A'
M68EZ328ADS v2.0 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents