Question

In: Computer Science

Assume that the instruction pointer, EIP, initially contains 2010 and the assembly language representation of the...

Assume that the instruction pointer, EIP, initially contains 2010 and the assembly language representation of the instructions in memory starting at address 2010 is

Instruction Address Instruction
20 CMP DL, 0xD2
21 JE 72

Before the instruction sequence is executed, the flags are CF=0, ZF=0 and SF=0 and the Registers have the values AL=0x0D, BL=0xA9 CL=0x5E andDL=0xCF. What is the value of the instruction pointer after the sequence executes?

Solutions

Expert Solution

Summary of the answer :

The given question is related to assembly language, knowing how CMP and JE instruction works are vital to answer these type of questions. it is essential in this question to know that ZF flag is vital for JE instruction to change the EIP value.


Related Solutions

Provide the instruction type, assembly language instruction, and binary representation of the instruction described by the...
Provide the instruction type, assembly language instruction, and binary representation of the instruction described by the following LEGv8 fields: op = 0x458, Rm = 14, Rn = 16, Rd = 18, shamt = 0
Assembly Language Programming: a)If eax = 0FFFFFFFFH, and edx = 0FFFFFFFFH, then the instruction                            
Assembly Language Programming: a)If eax = 0FFFFFFFFH, and edx = 0FFFFFFFFH, then the instruction                              imul edx will leave the value ______________________________ in the edx register. b)If eax = 0D000000DH, and edx = 50000005H, then the instruction                              idiv dl will leave the value ______________________________ in the eax register. c)If ax = 3BC4H, then the following instructions                              cmp ah, al jg   Label will / will not cause a jump to Label. d)If ax = 3BC4H, then...
Write a possible assembly language instruction or set of instructions to accomplish the following: a) Compare...
Write a possible assembly language instruction or set of instructions to accomplish the following: a) Compare the byte stored at the memory location pointed to by register R4 to the upper (higher) byte stored in register R5 b) Branch to instruction at label ‘ZERO’ if the lower byte of register R6 is zero c) Jump to the instruction at label ‘EVEN’ if the value in register R7 is an even number
Write in ARM assembly language the following operations without using multiplication instruction: a) A * 17...
Write in ARM assembly language the following operations without using multiplication instruction: a) A * 17 b). A * 23
Complete the corresponding assembly language fragments by selecting the correct instruction, register, or value: (Choices in...
Complete the corresponding assembly language fragments by selecting the correct instruction, register, or value: (Choices in bold) a) Consider the following fragment of C code: if(a == b) {        x += 10;        A[50] = A[50] +x; } else {         y += 10;         A[50] = A[50] + y; } Assume that variables a, b, x and y are assigned to $s0, $s1, $s2 and $s3 respectively and the base address for array A is in $s4. Only...
In YASM Assembly language, how would you convert a hex byte into it's ascii representation?
In YASM Assembly language, how would you convert a hex byte into it's ascii representation?
1) Provide the type and assembly language instruction for the following binary value: 0000 0010 0001...
1) Provide the type and assembly language instruction for the following binary value: 0000 0010 0001 0000 1000 0000 0010 0000 (two) 2) Provide the type, assembly language instruction, and binary representation of instruction described by the following MIPS fields: op=0, rs=3, rt=2, rd=3, shamt=0, funct=34 3)For the following C statement, write a minimal sequence of MIPS assembly instructions that does the identical operation. Assume $t1 = A, $t2 = B, and $s1 is the base address of C. A...
PLEASE USE ASSEMBLY LANGUAGE The database students.db contains student records. Each record contains a name (30B...
PLEASE USE ASSEMBLY LANGUAGE The database students.db contains student records. Each record contains a name (30B ASCII), student ID (9B ASCII), 3 grades out of 100 (3B integers), and a letter grade (1B ASCII). For the file students.db described above, assume all records are ordered alphabetically based on the name field. A record for a new student has been entered and stored in memory. Determine how to insert the new record into the database (Hint: use string compares to determine...
Is there gender differences in the neuronal representation of language?
Is there gender differences in the neuronal representation of language?
A piston–cylinder assembly contains propane, initially at 27°C, 1 bar, and a volume of 0.1 m3....
A piston–cylinder assembly contains propane, initially at 27°C, 1 bar, and a volume of 0.1 m3. The propane undergoes a process to a final pressure of 4 bar, during which the pressure–volume relationship is pV1.1 = constant. For the propane, evaluate the work and heat transfer, each in kJ. Kinetic and potential energy effects can be ignored.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT