Re: Understanding assembler instructions
- From: Alex McDonald <alex_mcd@xxxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 15:40:13 +0000 (UTC)
Betov wrote:
Christian Christmann <plfriko@xxxxxxxx> écrivait news:4361fcbd$0$21955 $9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxx:
In a CALL instruction, the high 2 bits are the instruction code and the low 30 bits are s signed word offset. What are the hex addresses for X, Y and Z?
There are several forms of CALL. The one for "Direct Code CALL" is a one-Byte Opcode, followed by a dWord.
This dWord is the relative Displacement from the first Byte, after the Call Instruction, to the targetted location.
Example
call Code0411860 ; E8 EC FF 00 00
... means (E8) CALL "+65516" (0FFEC)
call Code0401F80 ; E8 D5 FF FF FF
... means CALL "-43" (0FFFF_FFD5)
Betov.
< http://rosasm.org >
The OP was answering a question on SPARC architecture, not x86.
-- Regards Alex McDonald .
- Follow-Ups:
- Re: Understanding assembler instructions
- From: Betov
- Re: Understanding assembler instructions
- References:
- Understanding assembler instructions
- From: Christian Christmann
- Re: Understanding assembler instructions
- From: Betov
- Understanding assembler instructions
- Prev by Date: Re: OT: I have located Beth - but she's still confuzzled
- Next by Date: Re: HLA v1.78 is now available
- Previous by thread: Re: Understanding assembler instructions
- Next by thread: Re: Understanding assembler instructions
- Index(es):
Relevant Pages
|