Freescale Semiconductor Microcontrollers User Manual

Page 282

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

282

Microcontrollers Debugger Manual

and #$7F
lsla
sta CT1IDR2
lda 3,x ; get next byte in message address
and #$80
rola
rola
ora CT1IDR2
sta CT1IDR2
lda 3,x ; get next byte in message address
and #$7F
lsla
sta CT1IDR3
lda 4,x ; get the message priority
sta CT1TBPR
lda 5,x ; get the message length
sta CT1DLR
sta datacount
lda 6,x ; get the message data
sta CT1DSR0
lda 7,x ; get the message data
sta CT1DSR1
lda 8,x ; get the message data
sta CT1DSR2
lda 9,x ; get the message data
sta CT1DSR3
ldhx #Msg3_Desc ; set up transmission message 3
lda 0,x ; get message address
lsla
lsla
lsla
sta CT2IDR0
lda 1,x ; get next byte in message address
and #$E0
lsra
lsra
lsra
lsra
lsra
ora CT2IDR0
sta CT2IDR0
lda 1,x ; get next byte in message address
and #$1C
lsla
lsla
lsla
ora #$18
sta CT2IDR1

Advertising