Appendix C Find_Imm.asm - Motorola Digital dna MSC8101ADS Manual

Table of Contents

Advertisement

Appendix C find_IMM.asm

Freescale Semiconductor, Inc.
;
write IMM address to IMMR
section .text
global _Sinit
_Sinit
type func
move.l emr,d1
extractu #3,#19,d1,d3
eor
cmpeq.w #0,d3
bf
move.l
bra
st1
cmpeq.w #1,d3
bf
st2
cmpeq.w #2,d3
bra
st3
cmpeq.w #3,d3
bf
move.l
bra
st4
cmpeq.w #5,d3
bf
move.l
bra
st5
cmpeq.w #6,d3
bf
move.l
bra
st6
cmpeq.w #7,d3
bf
move.l
bra
st7
cmpeq.w #4,d3
bf
debug
stcmp
move.l
add
move.l
move.l
move.l
move.w
move.w
move.l
move.l
move.l
move.l
move.l
rts
endsec
For More Information On This Product,
Go to: www.freescale.com
Running LEDblinker from Internal SRAM
#4,d3.l
st1
#$f0000000,d1
stcmp
st2
move.l
#$f0f00000,d1
bra
stcmp
bf
st3
move.l
#$ff000000,d1
stcmp
st4
#$fff00000,d1
stcmp
st5
#$00f00000,d1
stcmp
st6
#$0f000000,d1
stcmp
st7
#$0ff00000,d1
stcmp
stcmp
#$10000,d0
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)
13

Advertisement

Table of Contents
loading

Table of Contents