Automated Loading Using a Batch File
56800E Flash Programmer User Guide, Rev. 0
Freescale Semiconductor
25
; impy.w routine.
moveu.w B1,R1
; R1 = B1
move.l X:(R1),B
; crc32table [R1]
eor.l B,Y
; Do the final XOR
;
crc = crc32table [crc & 0xFF] ^ (crc >> 8);
impy.w Y0,X0,B
; B = Y0 * 2, Adjusts for
; crc32table being 32-bits
; wide
lsrr.l #<8,Y
; crc >> 8
and.l C,B
; Removes junk added from
; impy.w routine.
moveu.w B1,R1
; R1 = B1
move.l X:(R1),B
; crc32table [R1]
eor.l B,Y
; Do the final XOR
;
crc = crc32table [crc & 0xFF] ^ (crc >> 8);
impy.w Y0,X0,B
; B = Y0 * 2, Adjusts for
; crc32table being 32-bits
; wide
lsrr.l #<8,Y
; crc >> 8
and.l C,B
; Removes junk added from
; impy.w routine.
moveu.w B1,R1
; R1 = B1
move.l X:(R1),B
; crc32table [R1]
eor.l B,Y
; Do the final XOR
;
crc = crc32table [crc & 0xFF] ^ (crc >> 8);
impy.w Y0,X0,B
; B = Y0 * 2, Adjusts for
; crc32table being 32-bits
; wide
lsrr.l #<8,Y
; crc >> 8
and.l C,B
; Removes junk added from
; impy.w routine.
moveu.w B1,R1
; R1 = B1
move.l X:(R1),B
; crc32table [R1]
eor.l B,Y
; Do the final XOR
;
} while (start <= end);
_endloop:
The timing of the interior of the do loop is as follows:
X Memory:
(D1 * 30) Clock Cycles
P Memory:
(D1 * 39) Clock Cycles