Академический Документы
Профессиональный Документы
Культура Документы
COE121/B1
QUIZ NO. 4
MATCHING TYPE:
B 1. Convert byte to word
E 2. ASCII adjust for addition
D 3. Decimal adjust for subtraction
B 4. Convert word to double word
C 5. Decimal adjust for addition
F 6. ASCII adjust for subtraction
H 7. ASCII adjust for division
G 8. ASCII adjust for multiplication
A. CBW
B. CWD
C. DAA
D. DAS
E. AAA
F. AAS
G. AAM
H. AAD
IDENTIFICATION
16. ____ specifies the addressing mode for selected instruction ans: MOD
17. ____ registers existing in microprocessor ans: REG
18. ____ registers that are enclosed with the bracket ans: R/M
19. ____ it indicates the data flow ans: direction bit
20. ____ it indicates the size of the information ans: W bit
25. This mnemonic instruction sends the data available in a port whose address is 19H to lower
accumulator. IN AL, 19
26. This mnemonic instruction increments the content of a memory location whose offset address is in
base pointer and destination index. INC [BP+DI]
27. This mnemonic instruction adds the content of the data register and the data valued 0919H. ADD
DX, 0919
28. This mnemonic instruction logically multiplies the content of the count register and the data contained
in the offset address DF45H. The instruction accesses the stack segment. The result will be stored in the
count register. AND CX,SS:[DF45]
29. This mnemonic instruction logically add the data stored 37 bytes after the location addressed by the
base index register. The result will be saved at the higher data register. OR DH, [BX37]
30. This mnemonic instruction subtracts the data addressed formed by the data index register from the
lower data register. SUB DL, [DI]
32. Given the following bytes, determine the mnemonic MOV instruction.
33. From the given program, at what address does instruction 4 is located? 0006-0007
1. ACE: XOR DX,DX
2. MOV [DI+BP+29h], DX
3. SUB DX, [7654h]
4. SPADE: ADD DX, [SI+ADh]
5. DEC DX
6. JNZ SIMA
7. XOR AX, AX
8. MOV AX, DX
9. JMP PURI
10. HLT
34. From the given program, what is the handcode equivalent of line 2. 8953