Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タグ:
@ ATAG_CORE .long 2 .long 0x54410001 @ ATAG_CMDLINE .long (1f - .) >> 2 .long 0x54410009
ARM のブート ラッパー コードを調べていたところです。ATAG タグが定義されているセクションでは、命令を理解できません。
.long (1f - .) >> 2
この指示は何をしますか?
ARMの専門家ではありませんが、他のアセンブラではこれは
1f= 次のラベルのアドレス (1 つ進む) . = 現在の場所
1f
.
1f - .次に、次のラベルまでの距離 (バイト単位) になります。
1f - .
これを 4 で割ると ( >> 2)、バイトではなくロングで距離が得られます。
>> 2