56F8346 & ASM: Need help I can't understand it's exact meaning

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

56F8346 & ASM: Need help I can't understand it's exact meaning

2,842 Views
Reallin
Contributor II
move.l #>>xxxx,r0
what 's the meaning of >> ? Anybody help me
or give me an example and show me the result
thx

Message Edited by Alban on 2006-10-23 11:00 AM

Labels (1)
Tags (3)
0 Kudos
4 Replies

960 Views
admin
Specialist II
As far as i understood "#>>" point to long immediate data (see 56800ERM - 3.6.1 Addressing mode).
0 Kudos

960 Views
mke_et
Contributor IV
If you mean the '>>' that's a 'shift'. It's an assembler command.

In the example bootcode for the 9S12 there was a sequence that went:

ldab LoadAddr, pcr ; Get high byte of address
cmpb #SRecLow>>16 ; Less than C0000?
bhs ChkHiLimit

In this case, the SRecLow value is right shifted 16 bits so that the 'page' can be referenced (checked) against an 8-bit value
0 Kudos

960 Views
Reallin
Contributor II
wrong space, hehe
the chip is 56F8346 ^^
maybe i should ask this in forum 16-bit microcontrollers
0 Kudos

960 Views
SimonMarsden_de
Contributor II
Sorry, not sure. What assembler are you using? Does the code actually assemble?

Two things puzzle me about this code. I would not expect >> to be legal in this context, and I don't know what the 'r0' register is - I would expect e.g. 'a0' or 'd0'.
0 Kudos