Вы находитесь на странице: 1из 4

DE GUZMAN, NEO JADE A.

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

FILL IN THE BLANKS

9. Clear ____ Flag ans: carry


10.____ direction Flag ans: clear
11.____ until interrupt or reset ans:halt
12.set interrupt-____ flag ans: enable
13. wait for ____ active ans: test pin
14. lock ___ during next instruction ans: bus
15. escape to ____ processor ans: external

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

Provide the MOD of the following functions:


21. ___ no displacement ans: 00
22. ___ 16-bit signed displacement ans: 10
23. ___ 8-bit sign-extended displacement ans: 01
24. ___ R/M is a register ans: 11

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]

31 .Given the following bytes, determine the mnemonic MOV instruction.

Byte1- 1000 1000 Byte2 0001 1110

Byte3 0101 0101 Byte4 1011 1001 MOV [B955], BL

32. Given the following bytes, determine the mnemonic MOV instruction.

Byte1 1100 0110 Byte2 0101 0000

Byte3 0111 1011 Byte4 1101 1100

Byte5 0101 1001 Byte6 1010 1110 MOV DS:[BX+SI+7B], 59

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

35. From the given program, what is the


handcode equivalent of line 3. 2B16

Вам также может понравиться