Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can i have number three done for b,c,e,f,g i dont understand it at all can you p

ID: 3729464 • Letter: C

Question

Can i have number three done for b,c,e,f,g i dont understand it at all can you provide an explanation provided the answer key for the others so you can see if your correct on those 1. For each part of this problem, assume the "before" values when the given mov instruct Give the requested "after" values. Before Instruction After (a) EBX: 00 00 FF 75 ECX: 00 00 01 A2 (b) EAX: 00 00 01 A2 (c) EDX: FF 75 4C 2E mov ebx, ecx mov eax, 100 EBX, ECX EAX dValue: DWORD-1 "(d) AX: 01 4B (e) AL: 64 () EBX: 00 00 3A 4C mov edx, dvalue mov ah, o mov al,-1 EDX, dValue AX AL dValue: DWORD? (g) ECX: 00 00 00 00 (h) RAX:00 00 00 00 00 00 00 00 mov rax, -1 (i) qValue: QWORD 0 G) qValue: QWORD ? mov dvalue, ebx mov ecx, 128 EBX, dValue ECX RAX qValue mov qvalue, 100 qValue, R8 mov qvalue, R8 mov ebx, 12 RBX (k) RBX: 12 12 12 12 12 12 12 12 () R15: 15 15 15 15 15 15 15 15 wValue: WORD-15 mov r15w, wValue R15 2. Give the opcode and number of bytes of object code (including prefix bytes) for each instruction in 3. Include each instruction (a)-(g) from Exercise 1 in a short program. Assemble the program and examine Exercise 1. the listing file. If the object code has a ModR/M byte, give the value for each of the three fields and, if possible from the discussion in this section, interpret the value of each field. ha hataranl.euhan tha niuen vcha inctruction is executed

Explanation / Answer

b)
here we can see that a hex value corresponding to 100 should be moved into eax which is 64 hence the final value of eax wil be 00 00 00 64
c)
dvalue will have FFFF FFFF in it
and we are moving it in edx also hence edx will be
FFFF FFFF
e)
here we are moving FF which is the hex equivalent of -1 in 2's complement form in al hence AL is FF
f)
ebx remains the same and we have moved ebx in dValue hence dValue is 00 00 3A 4C
g)
Here we are moving hex equivalent of 128=00 00 00 80
Hence we have ECX=00000080

Do give a thumbs up and in case there are doubts leave a comment.