True False questions
1.The instruction IDIV CX means that the quotient will be a 16 bit value
2.The MUL instruction sets the Overflow flag if the upper half of the product is equal to zero.
3.The MOV instruction doesn't change any flag
4.The following instructions will set the Carry flag:
mov al,125
sub al, 4
5.After the following multiplication:
mov al, 5
mov bl, 2
imul bl
AH will be 0
Solution
2.The MUL instruction sets the Overflow flag if the upper half of the product is equal to zero
Answer
False
Explanation
The MUL instruction sets the Carry and Overflow flags if the upper half of the product is not equal to zero.
Hence Answer is False
------
3.The MOV instruction doesn't change any flag
Answer
True
Explanation
"MOV" instruction doesn't change any flags it used to preserve the flag values across the execution of a "MOV" instruction
Hence Answer is True
---
1.The instruction IDIV CX means that the quotient will be a 16 bit value
Answer
True
Explanation
for example
mov dx, 0
mov ax, 8003h
mov cx, 100h
div cx
quotient will be AX = 0080h that is 16 bits
remainder DX will be= 0003h
Hence Answer is True
---
Answered first 3 questions
really sorry couldnt able to solve the remaining
all the best
True False questions 1.The instruction IDIV CX means that the quotient will be a 16 bit...
Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF = 1. Give the new contents of AL after each of the following instructions is executed. Assume the above initial conditions for each part of this question. a. SHL AL,1 b. SHR AL,1 c. ROL AL,2 d. ROR AL,3 e. SAR AL,2 f. RCL AL,1 g. RCR AL,3 B. Suppose EAX contain ABCDH. Show the contents of BX and CX after...
QUESTION 18 The following is a valid instruction? ADD BL,CX True False QUESTION 19 The following is a valid instruction? SUB 5,AL True False QUESTION 20 Write a valid instruction that adds the 16bit value n the A register to the 16bit value in the B register and places the result in the A register. Be sure to use 16bit registers. QUESTION 21 What instruction does nothing but modify the ElP register when executed? QUESTION 22 register and and the...
please provide screenshots using dos debug.
4. Assemble the following instruction sequence into the memory starting at address CS: 100 and then verify their machine code in the memory. a. ADD AX, 00FFH b. ADC SI, AX c. INC BYTE PTR [0100H] d. SUB DL, BL e. SBB DL, [0200H] f. DEC BYTE PTR [DI+BX] g. NEG BYTE PTR [DIJ+0010H h. MUL DX i. IMUL WORD PTR [BX+SI] j. DIV WORD PTR [SI]+0030H k. IDIV WORD PTR [BX]ISI]+0030HS. How many...
1. What will be the contents of BX after the following instructions execute? mov bx,5 stc mov ax,60h adc bx,ax 2. Describe the output when the following code executes in 64-bit mode: .data dividend_hi QWORD 00000108h dividend_lo QWORD 33300020h divisor QWORD 00000100h .code mov rdx,dividend_hi mov rax,dividend_lo div divisor 3. The following program is supposed to subtract val2 from val1. Find and correct all logic errors (CLC clears the Carry flag): .data val1 QWORD 20403004362047A1h val2 QWORD 055210304A2630B2h result QWORD...
Please answer the following Assembly x86 Questions with either TRUE or FALSE. 1. The PUSHAD instruction pushes all the 32-bit general-purpose registers on the stack. 2. The SS register points to the last value pushed on the stack. 3. The POP instruction copies a value from the stack to an operand, then it increments the stack pointer 4. When a macro is invoked, both CALL and RET instructions are needed. 5. When the instruction CALL runs, ESP always changes value....
TRUE/FALSE QUESTIONS: Foundations of Information Security and Assurance 1. There is a problem anticipating and testing for all potential types of non-standard inputs that might be exploited by an attacker to subvert a program. 2. Without suitable synchronization of accesses it is possible that values may be corrupted, or changes lost, due to over-lapping access, use, and replacement of shared values. 3. The biggest change of the nature in Windows XP SP2 was to change all anonymous remote procedure call (RPC)...