QUESTIONS Short Answer 1. Using the bitwise AND operation, the result of 1 AND 0
ID: 3889514 • Letter: Q
Question
QUESTIONS Short Answer 1. Using the bitwise AND operation, the result of 1 AND 0 is 2. 11010101 03110001 10100100 A common way to detect whether a value is even or odd is to use the if the least signifcant bit is set 3. operation to test 4. Combining multiple flags into a single variable can be accomplished via the 5. In order to implement branching in an Assembly program, you must use operatio. to identify blocks of code 6. The instruction wil move execution to a ditterent section of code regardless of any conditions. 7. Before any conditional tests can be executed, two operands must be compared using the instruction, 8. A comparison operation sets processor flags based on an implied 9. The JNGE instruction means to jump to a label f the first operand is of two operands. the second operand 10. Only 11. In order to jump if the Sign Flag is set to 0 after a compare instruction, use the operands should be used when executing the JNA instruction. instruction. 12. Counter-based loops can be quickly written using the LOOP instruction, which uses as the counter 13. In 32-bit mode, the LOOP instruuction automatically 14. Programmers can use a combination of the ecx when executed. instruction and a instruction to create their own counter-controlled loops 15. Using instead of to store data can help a program execute faster. True/False 1. The AND bitwise operation is commonly used for setting bits in a value 2 The JMP instruction does not require any specific processor flags to be set. 3. The JNZ instruction can be used with signed operands 4. The LOOP instruction preserves the counter value automatically so the programmer is free to use the counter register (cxlecx/rcx) within the loop. In Assembly, you must always use two conditional jump instructions to test both the if case and the else case. 5.Explanation / Answer
1.0
2.addition operator
10100100
11010101
---------
3.& operator
4.
Bitwise
5.Mov instruction
6.jump
7.cmp
8.adding
9.not greater than or not equal to
10.multiply
11.cmp
TRue or false
1.True
generally used for testing and setting individual bits in a value.
2.The JMP instruction does not require any specific processor flags to be set
false
3.THe JNZ instreuctions can be used with signed operands
TRue
4.The loop instructions preserves the counter value automatically so the programmer is free to use the counter register within the loop
False
5.In assembly you must always use two conditional jump instruction to test both the if case and the
else case
TRue