Sunteți pe pagina 1din 6

The ______ selects the operation (addition, subtraction, move, and so on) that is

performed by the microprocessor."


Encoder
Segment Register
Decoder
Opcode
Given the following code, what is the content of AL after
executing the instruction. (not sure)
CLC
MOV AL, 10011011b
ROL AL, 5
A. 10011100
B. 01110011

C. 01101011

D. 01111011

This group of instruction is used to shift or rotate bits left or right in register or memory
operands.
Bit Manipulation Instructions
Logical Instructions
Arithmetic Instructions
Program Transfer Instruction

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


00
01
10
11

The flag that acts as Borrow flag in the instruction, SBB is"
direction flag
carry flag
parity flag
trap flag
The 100010dw mmregr/m template should be used for converting the following
assembly instructions to machine code except:
"MOV AX,[BX]"
"MOV ES, AX"
"MOV [BP+4891H],DL"
"MOV [1000H],DL"

This instructions inverts the carry flag.


CLC
STC
CMC
CLD
What is the equivalent of the following:
MOV AL, 5
MOV CL,2
MUL CL
MOV AL, 5
SHR AL, 5
MOV AL, 5
ROR AL, 5
MOV AL, 5
SHL AL, 1
MOV AL, 5
XOR AL, AL

The following are string instructions that use the


accumulator except
a. CMPS b. STOS c. LODS d. SCAS
The first 2 bytes of the 32-bit instruction mode format are called ______ because they
are not always present.
overall prefixes
override prefixes
overhaul prefixes
overwrite prefixes

"If the direction bit, D=1, data flow _____ the register REG field ______ the R/M field
located in the second byte of an instruction."
"from, to"
"to, within"
"to, from"
None of the choices
If the instruction is MOV CL,DS:[1234H], the code for mm = ______"
00
11
01
10
For the instruction MOV CL, CH what is the code in the REG field when assembled?"
001
101
010
100

Given the following, what is the content of the destination


after executing the instruction:
CLD
MOV AL, 09Fh
RCL AL, 7
7Ah
no answer
0B7h
0A7h
Given the following what is the content of the register after
executing the instruction
MOV AX, 11001100b
XOR AX, 0CH
CX=00C0h
AX = 000Ch
BX = 000C0h
None of the above

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


Memory
Registers
Destination operand
nowhere
"If the MOD field contains a 00, 01, or 10 and R/M Code is 001, the addressing mode is
____."
DS:[BX+SI]
DS:[BX+DI]
DS:[DI]
DS:[BX]
"In Segment register selection, if the code is 010, the segment register is ______."
ES
CS
SS
GS

Given the following, what is the content of the registers after


executing the instructions
MOV AH, 11001100b
MOV AL, 00110011b
MOV BX, 11111111b
OR AX, BX
AX = 0CCFFh
BX = 00FFh
AX = 11111100h
BX = 00001111h
AX = 1111 1111b
BX = 11111100h
"If the instruction is MOV BL,DS:[1234H], the code for R/M = ______"
011
111
110
indeterminate
The instruction that performs logical AND operation and the result of the operation is not
stored in the destination operand.
AAA
AND
TEST
XOR
The instruction is MOV BL,DS:[1234H] will assemble as a _______ instruction."
2-byte
3-byte
4-byte
6-byte
"It is used to examine the state of individual bits, or groups of bits."
Double words
Bit Scan Forward
Test
Bit Test
Covert the machine code 034606H to Assembly Language.

ADD AX,[BP+6]

Convert to machine code the instruction, POP BP. (Answer in Hexadecimal)


5D H
try 5D
Covert the machine code 8CD0H to Assembly Language.
MOV SS, AX
Convert to machine code the instruction MOV DX,3ACH. (Answer in Hexadecimal)
BA AC 03H
try BA AC 03
Convert to machine code the instruction AND AL,0FCH. (Answer in Hexadecimal)
24FC H
try 24FC
GIven: MOV BL,04Fh

ADD BL, 0B1H

The execution part results in ZF=0. True or False

False
try true
IF CF=1, AL=95, and BL=4F prior to the execution of "SBB AL,BL", what will be the contents of AL after
subtraction in base 10?

16
try 45
AX
In unsigned division of a word in AX by a word in DATA1, the quotient will be placed in and
DX
the remainder in

In unsigned division of a doubleword in DX AX by a word in CX, the quotient will be placed


AX DX
in and the remainder in

S-ar putea să vă placă și