1. For every instruction, give the 80×86 opcode and complete variety of bytes of object code, together with prefix bytes. Assume you might be in 64-bit mode and that word0p, dbl0p, and quad0p reference a phrase, doubleword and quadword in information, respectively.

Add ax, word0p
Sub dbl0p, ebx
Sub rax, 10
Add quad0p, 1000
Inc r10b
Dec word0p
Neg rdx
Inc QWORD PTR [rdx]
2. Please present code changing a Fahrenheit to a Celsius utilizing the registers edx and eax?

three. Please write the instructions (declarations) to setup a 2-byte and Four-byte GPS location.

Four. Is the next code legitimate? Why or why not:

mov eax, [ebx-ecx] ;
mov [eax+esi+edi], ebx ;
cmp eax, edx ;
xor ecx, ecx ;
inc eax ;
5. What does the next code do?

Push ebp ;
Mov ebp, esp ;
Push ebx ;
6. Please present code for the next situation:

Create some time loop that that checks for Four iteractions
Create jumps and labels for every case
Present an exitcode together with attainable return codes.

Published by
Write
View all posts