C 1 2 3 4 5 6 7 8 9 10 11 12 13 14 int fibfint n int i

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n be compactly encoded (requiring just two bytes), and the object code can be shifted to different positions in memory without alteration. Practice Problem 3.8: 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. A. What is the target of the jbe instruction below? 8048d1c: 8048d1e: 76 da eb 24 jbe jmp XXXXXXX 8048d44 B. What is the address of the mov instruction? XXXXXXX: XXXXXXX: eb 54 c7 45 f8 10 00 jmp mov 8048d44 $0x10,0xfffffff8(%ebp) C. In the following, the jump target is encoded in PC-relative form as a 4-byte, two’s complement number. The bytes are listed from least significant to most, reflecting the little endian byte ordering of IA32. What is the address of the jump target? 8048902: 8048907: e9 cb 00 00 00 90 jmp nop XXXXXXX D. 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: 80483f5: ff 25 e0 a2 04 08 jmp *0x804a2e0 3.6. CONTROL 117 To implement the control constructs...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online