Re: Understanding assembler instructions



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 >





.



Relevant Pages

  • Re: Modifying pmars.
    ... Ability to cycle instruction code. ... Ability to cycle instruction modifier. ... Ability to cycle instruction addressing a. ...
    (rec.games.corewar)
  • Re: Strange exception, please help
    ... the instruction code is identical between crashing and non-crashing ... Baring a hardware problem, do you know of any way that an instruction ... problem with virtual memory mapping or some such? ...
    (microsoft.public.development.device.drivers)
  • .c, .m, .ma, .mb modifier ideas to change the instruction code itself (etc).
    ... This kinda limits the self modifieing capabilities. ... ..c this would cause the operations to work on the instruction code itself ... ..m this would make the operations work on the modifier field itself. ...
    (rec.games.corewar)
  • Re: Assembler question
    ... instruction code, X'1A', could be used as a positive packed decimal "1" ... Anyone who has spent a significant time looking at dumps of application code will verify: quite often, instruction streams can be confused with data areas, just because of the respective contents. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Strange exception, please help
    ... CC is INT 3 being the breakpoint instruction. ... the instruction code is identical between crashing and non-crashing ... > Baring a hardware problem, do you know of any way that an instruction ...
    (microsoft.public.development.device.drivers)