Question: In Chapter 3, we will look at listings generated by a disassembler, a program that converts an executable program file back to a more readable

In Chapter 3, we will look at listings generated by a disassembler, a program that converts an executable program file back to a more readable ASCII form. These files contain many hexadecimal numbers, typically representing values in two'scomplement form. Being able to recognize these numbers and understand their significance (for example, whether they are negative or positive) is an important skill.
For the lines labeled A-I (on the right) in the following listing, convert the hexadecimal values (in 32-bit two's-complement form) shown to the right of the instruction names (sub, mov, and add) into their decimal equivalents:

4004d0: 48 81 ec e0 02 00 00 4004d7: 48 8b 44 24 a8 4004dc: 48 03 47 28 4004e0: 48 89 44 24 do 4004e5: 48 8b

4004d0: 48 81 ec e0 02 00 00 4004d7: 48 8b 44 24 a8 4004dc: 48 03 47 28 4004e0: 48 89 44 24 do 4004e5: 48 8b 44 24 78 4004ea: 48 89 87 88 00 00 00 4004f1: 48 8b 84 24 f8 01 00 4004f8: 00 4004f9: 48 03 44 24 08 4004fe: 48 89 84 24 C 00 00 400505: 00 400506: 48 8b 44 d4 b8 sub mov add mov mov mov mov add mov mov $0x2e0,%rsp -0x58 (%rsp),%rax 0x28 (%rdi), %rax %rax,-0x30 (%rsp) Ox78 (%rsp), %rax %rax, 0x88 (%rdi) 0x1f8 (%rsp),%rax 0x8 (%rsp), %rax %rax, 0xc0(%rsp) -0x48 (%rsp, %rdx, 8), %rax ABCDG B. C. D. E. F. G. H. H I.

Step by Step Solution

3.46 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

For a 32bit word any value consisting of 8 hexadecimal digits beginning with one of the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Systems A Programmers Perspective Questions!