HC08 Full Chip Simulation
Configuration Procedure
280
Microcontrollers Debugger Manual
lda 1,x ; get next byte in message address
and #$E0
lsra
lsra
lsra
lsra
lsra
ora CT0IDR0
sta CT0IDR0
lda 1,x ; get next byte in message address
and #$1C
lsla
lsla
lsla
ora #$18
sta CT0IDR1
lda 1,x ; get next byte in message address
and #$03
lsla
ora CT0IDR1
sta CT0IDR1
lda 2,x ; get next byte in message address
and #$80
rola
rola
ora CT0IDR1
sta CT0IDR1
lda 2,x ; get next byte in message address
and #$7F
lsla
sta CT0IDR2
lda 3,x ; get next byte in message address
and #$80
rola
rola
ora CT0IDR2
sta CT0IDR2
lda 3,x ; get next byte in message address
and #$7F
lsla
sta CT0IDR3
lda 4,x ; get the message priority
sta CT0TBPR
lda 5,x ; get the message length
sta CT0DLR
sta datacount
lda 6,x ; get the message data
sta CT0DSR0