ask help about Assembly Language

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

ask help about Assembly Language

ソリューションへジャンプ
1,373件の閲覧回数
robert_zhang
Contributor I

i study assembly language now,in function asm_set_ipl:

i see a instruction as following,but i dont konw the meaning of 8 that at the left of a6.in programer reference datasheet,i dont find the explanation,who can help me or tell me where can find some stuff about it?

    move.l  8(A6),D6    /* get argument  */

ラベル(1)
0 件の賞賛
返信
1 解決策
780件の閲覧回数
pgo
Senior Contributor V

Dear Robert,

 

 The instruction loads a longword (4 bytes) from the memory address calculated from the sum of A6 and an offset of 8 from the instruction.  The longword is loaded into D6.

 

An example with numbers:

 

Say A6 contains 0x10000

mem[0x10008..0x1000B] => D6

 

It is likely that A6 is being used as a frame pointer and the 8 is an offset into the stack frame used to pass parameters to the function (from C code?).

 

bye

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
781件の閲覧回数
pgo
Senior Contributor V

Dear Robert,

 

 The instruction loads a longword (4 bytes) from the memory address calculated from the sum of A6 and an offset of 8 from the instruction.  The longword is loaded into D6.

 

An example with numbers:

 

Say A6 contains 0x10000

mem[0x10008..0x1000B] => D6

 

It is likely that A6 is being used as a frame pointer and the 8 is an offset into the stack frame used to pass parameters to the function (from C code?).

 

bye

0 件の賞賛
返信