Quiz 3 Flashcards

1
Q

Which of the following is not a data copy/transfer function?

A

DAS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False

Program control transfer instructions, are instructions for the transfer of data from memory to internal register, from internal register to memory, from one register to another register, from input port to internal register, from internal register to output port, etc.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The instructions inverts the carry flag

A

CMC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To compare the source and destination operands, CMP instructions performs ___ between the operands

A

Subtraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The flag that acts as borrow flag in the instruction, SBB is

A

Carry flag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

It is used to examine the state of individual bits, or group of bits

A

Test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False

In unsigned multiplication of CX with a byte in AL, the product is placed in both AX and DX registers

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In unsigned division of a word in AX by a byte in DATA2, the quotient will be placed in __ and the remainder in ___

A

AL , AH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

80286 could be operated in protected mode but with only have ___ for address bus

A

24-bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In calculating the target address to jump to, a displacement is added to the contents of the register

A

PC or Program Counter
or
IP??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

It is a utility program that convertd source code programs from assembly language into machine language

A

Assembler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

32 bit microprocessors operating in protected mode could address up to __

A

4 GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In protected mode, access to the segment is allowed if ___

A

Both a and b
(a) RPL = DPL
(b) RPL > DPL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In protected mode memory, protection implemented by restricting access to memory segments through ___

A

Both a and b

(a) privilege levels
(b) access rights

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which of the following instructions perform subtraction without changing the content of the destination

A

CMP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

This mnemonic instruction immediately adds the data valued 0929H with the count register

A

ADD CX, 0929H

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

If the direction bit, D=1, data flow. The address REG field. The R/M field located in the second byte of an instruction

A

TO, FROM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

In unsigned division of a double word in DX AX by a word in CX, the quotient will be placed in _ and the remainder in _

A

AX DX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

If the instruction is MOV CL, DS:[1234H], the code for mm = __

A

00

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The instruction, MOV AX, [BX] is an example of ___

A

Register Indirect Addressing Mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

CS contains 2001H and IP contains 007CH, which physical memory location is accessed for the next instruction ___

A

2008CH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

If the MOD field contains a 00, 01 or 10 and R/M Code is 000, the addressing mode is ___

A

DS:[BX+SI]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

If the MOD field contains a 00, 01 or 10 and R/M Code is 001, the addressing mode is ___

A

DS:[BX+DI]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

If the MOD field contains a 00, 01 or 10 and R/M Code is 111, the addressing mode is ___

A

DS:[BX]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Convert the machine code 8CD0H to Assembly language

A

MOV AX, SS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Convert the machine code 034606H to Assembly language

A

ADD AX, [BP+6]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Convert to machine code the instruction AND AL, 0FCH

A

24FCH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Convert to machine code the instruction, POP BP

A

5DH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Convert to machine code the instruction ADC BX, DX

A

13DAH

30
Q

If the instruction is MOV BL, DS:[1234H], the code for R/M is

A

110

31
Q

It is a general purpose instruction to transfer byte or word from register to register, memory to register, register to memory or with immediate addressing

A

MOV instruction

32
Q

These instructions are used to perform rotate operations, except:

A

REP

33
Q

Given the following bytes, determine the mnemonic MOV instruction.

Byte 1 : 1100 0110
Byte 2 : 0110 1001
Byte 3 : 1010 0110
Byte 4 : 1100 1100
Byte 5 : 1110 0101
Byte 6: 1011 1001

A. MOV DS:[BX+DI+A6H], E5H
B. MOV DS:[BX+DI+CCH], B9H
C. MOV DS:[BX+DI+CCA6H], B9E5H
D. MOV DS:[BX+DI+A6H], B9E5H

A

A. MOV DS:[BX+DI+A6H], E5H

34
Q

Given the following bytes, determine the mnemonic MOV instruction.

Byte 1 : 1000 1000
Byte 2 : 0011 0110
Byte 3 : 1011 0111
Byte 4 : 0110 1101

A. MOV DH, [6DB7H]
B. MOV DH, [BP+6DB7H]
C. MOV [BP+6DB7H], DH
D. MOV [6DB7H], DH

A

D. MOV [6DB7H], DH

35
Q

For the instruction MOV CL, CH what is the code in the REG field when assembled?

A

001

36
Q

If SI= 1000H, what does MOV [SI], BH do?

a. reads byte of data from memory location 1000H into BH
b. writes byte of data from BH into memory location 1000H
c. “Illegal, only DI can be used between [] s”
d. “illegal, mixed sizes”

A

writes byte of data from BH into memory location 1000H

37
Q

In a compare (CMP) operation, the result of comparison is stored in ___

A

Nowhere

38
Q

The instruction MOV [BP], DL will assemble with mm/mod = ___

A

01

39
Q

The instruction is MOV BL, DS:[1234H] will assemble as a __ instruction.

A

4-byte

40
Q

True or False
Given:
MOV BL, 04FH
ADD BL, 0B1H
The execution part results in ZF=0

A

False

41
Q

Given the following, what is the content of the destination after executing the instructions

MOV AX, 0FEEDH
AND AX, 0F00DH

A

AX= F00DH

42
Q

Given the following what is the content of the register after executing the instruction
MOV AX, 11001100B
XOR AX, 0CH

A

AX=000CH

43
Q

In unsigned multiplication of AX with BX, the product will be placed in register(s)

A

DX;AX

44
Q

The 100010dw mmregr/m template should be used for converting the following assembly instructions to machine code except:

a. MOV AX, [BX]
b. MOV ES, AX
c. MOV [BP+4891H], DL
d MOV [1000H], DL

A

MOV ES, AX

45
Q

The instruction that performs logical AND operation and the result of the operation is not stored in the destination operand

A

TEST

46
Q

The __ selects the operation (addition, subtraction, move, and so on) that is performed by the microprocessor

A

Opcode

47
Q

In the RCL instruction, the contents of the destination operand undergo function as ___

A. Carry flag is pushed into LSB & MSB is pushed into the carry flag
B. Carry flag is pushed into MSB & LSB is pushed into the carry flag
C. Auxilliary flag is pushed unti LSB & MSB is pushed into the carry flag
D. Parity flag is pushed into MSB & LSB is pushed into the carry flag

A

Carry flag is pushed into LSB & MSB is pushed into the carry flag

48
Q

This group of instruction is used to shift or rotate bits left or right in register or memory operands.

A

Bit Manipulation Instructions

49
Q

Determine the data after executing each instruction

C=1 AL= 1010 1011 (10 11)
RCR AL, 5

A. BA
B. BD
C. FA
D. 7A

A

BD

50
Q

Determine the data after executing each instruction

C=1 AL= 1010 1011 (10 11)
ROR AL, 4

A. 7A
B. FA
C. BA
D. 8A

A

BA

51
Q

Determine the data after executing each instruction

C=0 AL= 1100 0111 (12 7)
ROL AL, 2

A. 1D
B. 1C
C. 1F
D. 1E

A

1F

52
Q

Determine the data after executing each instruction

C=0 AL= 0100 1101 (4 13)
SAR AL, 4

A. 04
B. D4
C. A4
D. B4

A

04

53
Q

Determine the data after executing each instruction

C=1 AL= 1010 1010(10 10)
SHR AL, 5

A. 05
B. FA
C. 55
D. AD

A

05

54
Q

Determine the data after executing each instruction

C=1 AL= 0011 1011 (3 11)
SHL AL, 3

A. E7
B. D9
C. DC
D. D8

A

D8

55
Q

Determine the data after executing each instruction

C=1 AL= 1011 1001 (11 9)
RCR AL, 5

A. C8H
B. CDH
C. 9DH
D. 05H

A

9DH

56
Q

Determine the data after executing each instruction

C=1 AL= 1011 1001 (11 9)
SAR AL, 3

A. CDH
B. 6EH
C. F7H
D. 9DH

A

F7H

57
Q

Determine the data after executing each instruction

C=1 AL= 1011 1001 (11 9)
SHL AL, 3

A. F7H
B. 17H
C. C8H
D. CDH

A

C8H

58
Q

Determine the data after executing each instruction

C=1 AL= 1011 1001 (11 9)
ROR AL, 3

A. 37H
B. 05H
C. F7H
D. 9DH

A

37H

59
Q

Determine the data after executing each instruction

C=1 AL= 1011 1001 (11 9)
ROL AL, 2

A. 6DH
B. 9DH
C. E6H
D. C8H

A

E6H

60
Q

Determine the data after executing each instruction

C=1 AL= 1011 1001 (11 9)
SHR AL, 5

A. C8H
B. 9DH
C. 05H
D. F7H

A

05H

61
Q

This mnemonic instruction complements the content of the lower base index register.

A

NOT BL

62
Q

This mnemonic instruction subtracts with borrow the data addressed formed by the source index register from the higher base index register

A

SSB BH, [SI]

63
Q

This mnemonic instruction sets bit number two of lower base index regidter after testing

A

BTS BL, 2

64
Q

This mnemonic instruction subtracts one to the content of memory location whose offset addresses are from destination index register and base pointer register

A

DEC ES:[DI+BP]

65
Q

This mnemonic instruction logically multiplies the contents of the base index register and the data contained in the address formed by FC45H and the data segment. The answer will be stored at the base index register.

  1. Option 1
    AND BX, [DS+FC45H]
  2. Option 2
    MUL BX, [DS+FC45H]
  3. Option 3
    AND BX, [FC45H]
  4. Option 4
    MUL BX, [FC45H]
A

AND BX, [FC45H]

66
Q

This mnemonic instruction rotates right the destination index register twenty-nine times.

  1. Option 1
    RCL DI, 29
  2. Option 2
    ROL DI, 29
  3. Option 3
    RCR DI, 29
  4. Option 4
    ROR DI, 29
A

ROR DI, 29

67
Q

This mnemonic instruction adds one to the content of a memory location whose offset
addresses are from base index register and source index register.

  1. Option 1
    INC ES:[BX+SI]
  2. Option 2
    ADD [BX+SI], DS
  3. Option 3
    ADD DS, [BX+SI]
  4. Option 4
    ADC DS, [BX+SI]
A

INC ES:[BX+SI]

68
Q

This mnemonic instruction immediately adds the data valued 0919H with the accumulator and the carry.

  1. Option 1
    ADC AX, 0919H
  2. Option 2
    ADC, 0919H, AX
  3. Option 3
    ADD AX, 0919H
  4. Option 4
    ADD 0919H, AX
A

ADC AX, 0919H

69
Q

This mnemonic instruction jumps to a memory location labeled as ANGAT after performing addition, and there is a carry.

  1. Option 1
    JC ANGAT
  2. Option 2
    JNC ANGAT
  3. Option 3
    JNZ ANGAT
  4. Option 4
    JMP ANGAT
A

JC ANGAT

70
Q

This mnemonic instruction logically add the content of data register and the data contained at the memory location addressed by 0919h and the segment register, DS. The answer is stored at the data register.

  1. Option 1
    OR DX, DS:[0919H]
  2. Option 2
    ADD DX, DS:[0919H]
  3. Option 3
    ADC DX, DS:[0919H]
  4. Option 4
    INC DX, DS:[0919H]
A

OR DX, DS:[0919H]

71
Q

This mnemonic instruction rotates left with carry the low count register content, twenty times.

  1. Option 1
    RCL CL, 20
  2. Option 2
    ROL CL, 20
  3. Option 3
    SHL CL, 20
  4. Option 4
    SAL CL, 20
A

RCL CL, 20