In a stack, the first value pushed on a stack is the last one to be removed True
ID: 3859637 • Letter: I
Question
In a stack, the first value pushed on a stack is the last one to be removed True False The following instructions will produce FFFF FFFCh in EAX movsx eax, -4 True False What would be the value of the memory pointed by esi after running the following instruction: .data mybyte byte 11, 22, 33, 44, 55 mov esi, offset mybyte mov eax, DWORD PTR, [esi] 11223344h 44332211h 11 None of the above The following instructions will set the overflow flag: mov al, 0DEh add al, 03Ah True False The following instructions will set the overflow flag: mov al, 0 sub al, 03Ah True False The following instruction will set the negative flag: mov al, 7Fh sub al, 03Ah True False To multiply a number by 8, you can shift the content of the register by 3 bits to the right True FalseExplanation / Answer
1.true as the stack follows the FILO or LIFO order.
2.movsx eax,-4 as movsx instruction is used with signed operands and is used to move the source operand into the general purpose register,and then extend the sign bits into higher order bits of the destination.
3.11.because move eax, dwordptr[esi] will move the contents of esi into eax the esi contains the offset that is the ist byte 11.
4.b is the correct answer as when we are performing addittion of two unsigned number carry indicates the overflow which sets the overflow flag.
5.b as we have to perform subtraction using 2's complement so overflow flag is set.
6.b negative flag is set when performing subtraction using 2's complement.
7.true