Write true or false before the following statement The range
Write true or false before the following statement The range for a conditional jump is from -256 to 256. The number 11101111 is a valid packed BCD number. When using the Loop instruction, the counter showing the number of times to go through the loop is loaded in the CX register. For byte multiplication on the 8086 microprocessor, the result will be in the AX register. The instruction JNZ STOP is a conditional jump. For byte division on the 8086 microprocessor, the result will be in the BL and CL registers. The instruction DAA causes the number 10 to be added to the accumulator whenever it is needed in BCD addition. The instruction CMP BL,CH will add the value in CH from the value in BL and place the results in Al. The form of the shift logical left instruction is SHL 0PR,CNT. CNT must be either be 1 or CL. At the end of the PUSH instruction the SP will have been decremented 2. Show your work as necessary for the below problems. Add the two packed BCD number 10010111 and 01110110 by hand and program proper packed BCD results demonstrating how the DAA instruction is used. The code for JNZ is 75. Write the proper opcode for the JNZ POINT2 instruction. The code for JMP is EB. For the above program, write the opcode for JR. Show how data will be placed in memory as a result of the following instruction. ORC, 800H DAT A1 DW 6080H,1AB3H, 16 DATA2 DB 06,?,45H?,10, 0AH DATA3 DB 2 DUP (05,?,25H) Show each step and state what number will be in the AL register when halts. MOV AL,00 MOV CX, 02 MOV BL, 02 ADD: ADD AL,BL ADD BL, 02 DEC CX JNZ ADD HLT
Solution
1. True
2. False (BCD contains 0 to 9 only)
3. True
4. True (A means accumulator)
