User`s manual

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