Podcast
Questions and Answers
Which instruction is designed to transfer bytes or words between registers, memory, and immediate data sources?
Which instruction is designed to transfer bytes or words between registers, memory, and immediate data sources?
- MOV (correct)
- IN & OUT
- POP
- PUSH
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.
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.
- true
- false (correct)
Which of the following instructions is NOT used to perform rotate operations?
Which of the following instructions is NOT used to perform rotate operations?
- ROR
- ROL
- RCR
- REP (correct)
Which of the following is NOT a data copy/transfer function?
Which of the following is NOT a data copy/transfer function?
If CS contains 2001H
and IP contains 007CH
, what physical memory location is accessed for the next instruction?
If CS contains 2001H
and IP contains 007CH
, what physical memory location is accessed for the next instruction?
For the instruction MOV CL, CH
, what is the code in the REG field when assembled?
For the instruction MOV CL, CH
, what is the code in the REG field when assembled?
Given CS = 2000H
and IP = 1000H
, what is the memory address of the next instruction executed by the microprocessor?
Given CS = 2000H
and IP = 1000H
, what is the memory address of the next instruction executed by the microprocessor?
If SI = 1000H
, what does MOV [SI], BH
do?
If SI = 1000H
, what does MOV [SI], BH
do?
If a descriptor has Base = 23000000H
, Limit = 012FFH
and G = 1, at what address does the described segment end?
If a descriptor has Base = 23000000H
, Limit = 012FFH
and G = 1, at what address does the described segment end?
If the MOD field contains a 00, 01, or 10 and the R/M Code is 001, what addressing mode is used?
If the MOD field contains a 00, 01, or 10 and the R/M Code is 001, what addressing mode is used?
If the direction bit, D=1, data flows _____ the register REG field _____ the R/M field located in the second byte of an instruction.
If the direction bit, D=1, data flows _____ the register REG field _____ the R/M field located in the second byte of an instruction.
If the instruction is MOV BL,DS:[1234H]
, what is the code for R/M?
If the instruction is MOV BL,DS:[1234H]
, what is the code for R/M?
In a compare (CMP) operation, where is the result of the comparison stored?
In a compare (CMP) operation, where is the result of the comparison stored?
In protected mode, a selector value provides segment information EXCEPT:
In protected mode, a selector value provides segment information EXCEPT:
In protected mode memory, protection is implemented by restricting access to memory segments through:
In protected mode memory, protection is implemented by restricting access to memory segments through:
In protected mode, access to the segment is allowed if:
In protected mode, access to the segment is allowed if:
In real mode, what physical address is accessed by the segment-offset combination 0CD1:02E0
?
In real mode, what physical address is accessed by the segment-offset combination 0CD1:02E0
?
In the RCL instruction, what operation do the contents of the destination operand undergo?
In the RCL instruction, what operation do the contents of the destination operand undergo?
Which instruction is used to examine the state of individual bits, or groups of bits?
Which instruction is used to examine the state of individual bits, or groups of bits?
Which of the following selects the operation (addition, subtraction, move, etc.) that is performed by the microprocessor?
Which of the following selects the operation (addition, subtraction, move, etc.) that is performed by the microprocessor?
Which flag that acts as the 'Borrow' flag in the SBB instruction?
Which flag that acts as the 'Borrow' flag in the SBB instruction?
What best describes the instruction MOV DS:[2000H], AL
?
What best describes the instruction MOV DS:[2000H], AL
?
If the instruction is MOV AX, [BX]
, what is this an example of?
If the instruction is MOV AX, [BX]
, what is this an example of?
To compare the source and destination operands, what operation does the CMP instruction perform between the operands?
To compare the source and destination operands, what operation does the CMP instruction perform between the operands?
"If the instruction is MOV CL,DS:[1234H], the code for mm = ______"
"If the instruction is MOV CL,DS:[1234H], the code for mm = ______"
"The instruction MOV [BP],DL will assemble with mm/mod="
"The instruction MOV [BP],DL will assemble with mm/mod="
"The instruction is MOV BL,DS:[1234H] will assemble as a _______ instruction."
"The instruction is MOV BL,DS:[1234H] will assemble as a _______ instruction."
"The instruction, MOV AX, 1234H is an example of"
"The instruction, MOV AX, 1234H is an example of"
"The instruction, MOV AX,[BX] is an example of"
"The instruction, MOV AX,[BX] is an example of"
To format your question, type brackets around the answer and separate multiple answers with a
semicolon. For example: One of the primary colors is [red; blue; yellow]. You may also use a
regular expression. Only one expression per blank will be recognized. For example: [[a-zA-Z]] is
any letter in the alphabet.
Convert to machine code the instruction ADC BX,DX. (Answer in Hexadecimal)
To format your question, type brackets around the answer and separate multiple answers with a semicolon. For example: One of the primary colors is [red; blue; yellow]. You may also use a regular expression. Only one expression per blank will be recognized. For example: [[a-zA-Z]] is any letter in the alphabet. Convert to machine code the instruction ADC BX,DX. (Answer in Hexadecimal)
Convert to machine code the instruction AND AL,0FCH. (Answer in Hexadecimal)
[Blank 1]
Convert to machine code the instruction AND AL,0FCH. (Answer in Hexadecimal) [Blank 1]
Convert to machine code the instruction, POP BP. (Answer in Hexadecimal)
[Blank 1]
Convert to machine code the instruction, POP BP. (Answer in Hexadecimal) [Blank 1]
Covert the machine code 8CD0H to Assembly Language.
[Blank 1]
Covert the machine code 8CD0H to Assembly Language. [Blank 1]
GIven: MOV BL,04Fh
ADDBL, 0B1H
The execution part results in ZF=0. True or False
GIven: MOV BL,04Fh ADDBL, 0B1H The execution part results in ZF=0. True or False
Given the following , what is the content of the destination after executing the instructions
MOVAX, 0FEEDh
ANDAX, 0F00Dh
Given the following , what is the content of the destination after executing the instructions MOVAX, 0FEEDh ANDAX, 0F00Dh
Given the following what is the content of the register after executing the instruction
MOVAX, 11001100b
XORAX, 0CH
Given the following what is the content of the register after executing the instruction MOVAX, 11001100b XORAX, 0CH
In calculating the target address to jump to, a displacement is added to the contents of the
register ___.
[Blank 1]
In calculating the target address to jump to, a displacement is added to the contents of the register ___. [Blank 1]
In unsigned division of a doubleword in DX AX by a word in CX, the quotient will be placed in
[Blank 1] and the remainder in [Blank 2]
In unsigned division of a doubleword in DX AX by a word in CX, the quotient will be placed in [Blank 1] and the remainder in [Blank 2]
In unsigned division of a word in AX by a byte in DATA2, the quotient will be placed in [Blank 1]
and the remainder [Blank 2]
In unsigned division of a word in AX by a byte in DATA2, the quotient will be placed in [Blank 1] and the remainder [Blank 2]
In unsigned multiplication of AX with BX, the product will be bplaced in register(s)
[Blank 1]
In unsigned multiplication of AX with BX, the product will be bplaced in register(s) [Blank 1]
In unsigned multiplication of CX with a byte in AL, the product is placed in both AX and DX
registers.
- True
- False
In unsigned multiplication of CX with a byte in AL, the product is placed in both AX and DX registers.
- True
- False
The 100010dw mmregr/m template should be used for converting the following assembly
instructions to machine code except:
The 100010dw mmregr/m template should be used for converting the following assembly instructions to machine code except:
The instruction that performs logical AND operation and the result of the operation is not stored
in the destination operand.
The instruction that performs logical AND operation and the result of the operation is not stored in the destination operand.
This instructions inverts the carry flag.
This instructions inverts the carry flag.
This group of instruction is used to shift or rotate bits left or right in register or memory
operands.
This group of instruction is used to shift or rotate bits left or right in register or memory operands.
Flashcards
MOV Instruction
MOV Instruction
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.
Program Control Transfer Instructions
Program Control Transfer Instructions
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.
Assembler
Assembler
This is a utility program that converts source code programs from assembly language into machine language.
2008CH
2008CH
Signup and view all the flashcards
001
001
Signup and view all the flashcards
21000H
21000H
Signup and view all the flashcards
242FFFFFH
242FFFFFH
Signup and view all the flashcards
to, from
to, from
Signup and view all the flashcards
110
110
Signup and view all the flashcards
00
00
Signup and view all the flashcards
ending address
ending address
Signup and view all the flashcards
both a and b
both a and b
Signup and view all the flashcards
both a and b
both a and b
Signup and view all the flashcards
Carry Flag
Carry Flag
Signup and view all the flashcards
copies byte-size data in AX to the memory
copies byte-size data in AX to the memory
Signup and view all the flashcards
01
01
Signup and view all the flashcards
4-byte
4-byte
Signup and view all the flashcards
Subtraction
Subtraction
Signup and view all the flashcards
"10000H, 1FFFFH"
"10000H, 1FFFFH"
Signup and view all the flashcards
a, c and d
a, c and d
Signup and view all the flashcards
IP
IP
Signup and view all the flashcards
AH
AH
Signup and view all the flashcards
TEST
TEST
Signup and view all the flashcards
Bit Manipulation Instructions
Bit Manipulation Instructions
Signup and view all the flashcards
MOV instruction
MOV instruction
Signup and view all the flashcards
Study Notes
Instructions and Data Transfer
- A general-purpose instruction transfers a byte or word from register to register, memory to register, register to memory, or with immediate addressing.
MOV
instruction performs tasks such as moving data between registers, moving data between memory and registers, and utilizing immediate addressing.- Program control transfer instructions facilitate data transfer: from memory to internal register, from internal register to memory, from one register to another, from an input port to internal register, and from internal register to an output port.
- Instructions, except
REP
, are used to perform rotate operations. DAS
is not a data copy/transfer function.- The instruction
MOV DS:[2000H], AL
copies byte-size data inAX
to the memory.
Addressing and Memory
- If
CS
contains2001H
andIP
contains007CH
, the physical memory location accessed for the next instruction is2008CH
. - Given
CS = 2000H
andIP = 1000H
, the memory address of the next instruction executed by the microprocessor is21000H
. - If a descriptor has
Base = 23000000H
,Limit = 012FFH
, andG = 1
, the described segment ends at242FFFFFH
. - If the MOD field contains
00
,01
, or10
and the R/M Code is001
, the addressing mode isDS:[BX+DI]
. - The starting and ending address of the segment located by the segment register value
1000H
:"10000H,1FFFFH"
. - The segment-offset combinations that point to a common physical memory address are a)
A1B2:000C
and c)A1B0:002C
. - In real mode, the physical address accessed by the segment-offset combination
0CD1:02E0
is0CF0H
. - In calculating the target address to jump to, a displacement is added to the contents of the
IP
register. - The instruction
MOV AX, 1234H
is an example of immediate addressing mode. - The instruction
MOV AX,[BX]
exemplifies register indirect addressing mode.
Assembly Instructions and Machine Code
- An assembler is a utility program for converting source code programs from assembly language into machine language.
- For the instruction
MOV CL, CH
, the code in the REG field when assembled is001
. - If the direction bit
D=1
, data flow: to, from. The register REG field the R/M field is located in the second byte of an instruction. - If the instruction is
MOV BL,DS:[1234H]
, the code for R/M is110
. - If the instruction is
MOV CL,DS:[1234H]
, the code for mm is00
. - The instruction
MOV [BP], DL
will assemble withmm/mod=01
. - The instruction
MOV BL,DS:[1234H]
will assemble as a 4-byte instruction. - The machine code for the instruction
ADC BX,DX
is13DA
in hexadecimal. - The machine code for the instruction
AND AL,0FCH
is24FC
in hexadecimal. - The machine code for the instruction
POP BP
is5D
in hexadecimal. - The assembly language equivalent of the machine code
8CD0H
isMOVAX,SS
. - The 100010dw mmregr/m template is used for converting assembly instructions to machine code, with the exception of
"MOV ES, AX"
. - With
MOV BL,04Fh
andADDBL, 0B1H
, the execution part results inZF=0
is considered false.
Protected Mode
- A selector value in protected mode provides segment information, except for the ending address.
- Memory protection in protected mode is implemented by restricting access to memory segments through privilege levels and access rights.
- In protected mode, access to the segment is allowed if both
RPL = DPL
andRPL > DPL
. - 32-bit microprocessors operating in protected mode can address up to 4GB of memory.
- The 80286 could be operated in protected mode, but with only a 24-bit address bus.
- You must never use the segment registers as data registers to hold arbitrary values because: They should only contain segment addresses
Instruction Execution and Flags
- The instruction that performs logical AND operation and the result of the operation is not stored in the destination operand:
TEST
. - Opcode selects the operation (addition, subtraction, move, and so on) that is performed by the microprocessor.
- The carry flag acts as the Borrow flag in the instruction
SBB
. CMC
inverts the carry flag.- A MOV [SI], BH instruction writes a byte of data from
BH
into memory location1000H
assumingSI = 1000H
. - In a compare (CMP) operation, the result of the comparison is not stored anywhere.
- The instruction that performs logical AND operation and the result of the operation is not stored in the destination operand is
TEST
. - Given the following, what is the content of the destination after executing the instructions MOVAX, OFEEDH and ANDAX, 0F00Dh is
AX =F00Dh
. - Given the following what is the content of the register after executing the instruction MOVAX, 11001100b XORAX, OCH is
AX=000Ch
. - In unsigned division of a doubleword in
DX AX
by a word inCX
, the quotient will be placed inAX
and the remainder inDX
. - In unsigned division of a word in
AX
by a byte inDATA2
, the quotient will be placed inAL
and the remainder inAH
. - In unsigned multiplication of
AX
withBX
, the product will be placed in registersDX;AX
.
Bit Manipulation
- Bit Manipulation Instructions is used to shift or rotate bits left or right in register or memory operands.
- It is used to examine the state of individual bits, or groups of bits iand the instruction is
Test
. - In the RCL instruction, the carry flag is pushed into LSB & MSB is pushed into the carry flag.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.