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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

3,053 次查看
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)
标记 (3)
0 项奖励
回复
4 回复数

1,171 次查看
admin
Specialist II
As far as i understood "#>>" point to long immediate data (see 56800ERM - 3.6.1 Addressing mode).
0 项奖励
回复

1,171 次查看
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,171 次查看
Reallin
Contributor II
wrong space, hehe
the chip is 56F8346 ^^
maybe i should ask this in forum 16-bit microcontrollers
0 项奖励
回复

1,171 次查看
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 项奖励
回复