Re: Understanding assembler instructions



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
.



Relevant Pages

  • Re: how to rename a file folder
    ... Ramesh - Microsoft MVP ... Ignore the docs as they are wrong (it's showing a dword in hex format rather than hex in hex format). ... Logon to that account to create and initialize the profile ...
    (microsoft.public.windowsxp.customize)
  • Re: how to rename a file folder
    ... Ignore the docs as they are wrong (it's showing a dword in hex format rather than hex in hex format). ... Logon to that account to create and initialize the profile ...
    (microsoft.public.windowsxp.customize)
  • Re: Remove Logoff
    ... I thought I'd let you know that I did use Doug's script. ... It created the DWORD Value "StartMenuLogoff," but with a Hex value of "0." ... So I changed the Hex value to "1"--and it did work. ...
    (microsoft.public.windowsxp.general)
  • Re: How to enter 0x10 in registry DWORD?
    ... It is my understanding that the prefix 0x denotes hex. ... into the Value data box in the Edit DWORD Value dialog. ... Ken Blake - Microsoft MVP Windows: ... Open the Windows Calculator. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Visual Studio Installer 1.1 with COM Add-in?
    ... When you enter a value you set it as a String or DWORD value, 0 and 3 are the same in hex or decimal. ... Do I need to enter a hex value or something in the value for both the DWORD items (i.e. CommandLineSafe and LoadBehavior)? ...
    (microsoft.public.office.developer.com.add_ins)