previous | start | next

jump instruction coding

In the following excerpts from a disassembled binary, some of the information has been replaced by X.s.

Determine the following information about these instructions.

  1. What is the target of the jbe instruction below?

    8048d1c: 76 da jbe XXXXXXX
    8048d1e: eb 24 jmp 8048d44
           
    
  2. What is the address of the mov instruction?

    XXXXXXX: eb 54 jmp 8048d44
    XXXXXXX: c7 45 f8 10 00 mov $0x10,0xfffffff8(%ebp)
           
    
  3. In the following, the jump target is encoded in PC-relative form as a 4-byte, two.s complement number. The bytes are listed fromleast significant to most, reflecting the little endian byte ordering of IA32. What is the address of the jump target?

    8048902: e9 cb 00 00 00 jmp XXXXXXX
    8048907: 90 nop
           
    
  4. Explain the relation between the annotation on the right and the byte coding on the left. Both lines are part of the encoding of the jmp instruction.

    80483f0: ff 25 e0 a2 04 jmp *0x804a2e0
    80483f5: 08
           
    


previous | start | next