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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,997件の閲覧回数
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

ラベル(1)
  • DSC

タグ(3)
0 件の賞賛
返信
4 返答(返信)

1,115件の閲覧回数
admin
Specialist II
As far as i understood "#>>" point to long immediate data (see 56800ERM - 3.6.1 Addressing mode).
0 件の賞賛
返信

1,115件の閲覧回数
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 件の賞賛
返信

1,115件の閲覧回数
Reallin
Contributor II
wrong space, hehe
the chip is 56F8346 ^^
maybe i should ask this in forum 16-bit microcontrollers
0 件の賞賛
返信

1,115件の閲覧回数
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 件の賞賛
返信