AN2157 Freescale Semiconductor / Motorola, AN2157 Datasheet - Page 13

no-image

AN2157

Manufacturer Part Number
AN2157
Description
MSC8101 Programming the MSC8101ADS Flash Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Appendix C find_IMM.asm
;
_Sinit
st1
st2
st3
st4
st5
st6
st7
stcmp
write IMM address to IMMR
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
cmpeq.w #1,d3
cmpeq.w #2,d3
cmpeq.w #7,d3
cmpeq.w #4,d3
move.l
bf
cmpeq.w #3,d3
cmpeq.w #5,d3
cmpeq.w #6,d3
add
move.l
move.l
move.l
move.w
move.w
move.l
move.l
move.l
move.l
move.l
rts
endsec
type func
move.l emr,d1
extractu #3,#19,d1,d3
eor
cmpeq.w #0,d3
bf
move.l
bra
bra
bf
move.l
bra
bf
move.l
bra
bf
move.l
bra
bf
move.l
bra
bf
debug
section .text
global _Sinit
#$10000,d0
#4,d3.l
st2
d0,d1,d1
d1,r0
#$ffffffc3,d0
d0,(r0+4) ; disable watch dog timer
#$1470,d2
d2,(r0+$1a8)
#$14710000,r0
#$14501801,d0 ;init bcr reg address
d0,(r0+$108)
#$ffff8010,d0 ; br mask and machine
d0,(r0+$10c)
move.l
bra
bf
st1
#$f0000000,d1
stcmp
stcmp
st4
#$fff00000,d1
stcmp
st5
#$00f00000,d1
stcmp
st6
#$0f000000,d1
stcmp
st7
#$0ff00000,d1
stcmp
stcmp
move.l
#$f0f00000,d1
stcmp
st3
#$ff000000,d1
Running LEDblinker from Internal SRAM
13

Related parts for AN2157