NEW
Font size
WorksheetsProcessor Flow Quiz
Total questions: 15
Worksheet time: 8mins
What does the `MOVSB` instruction do in assembly?
Moves a word from the source to the destination.
Moves a byte from the source to the destination.
Moves a byte from one register to another.
Copies a byte from the destination to the source.
Which register is typically used for string manipulation as the source index?
BX
SI
AX
DI
The `REP` prefix is used with which type of instructions?
String instructions
Bitwise instructions
Arithmetic instructions
Control flow instructions
Which flag is checked to determine if a string comparison using `CMP` was successful?
Overflow Flag (OF)
Zero Flag (ZF)
Carry Flag (CF)
Sign Flag (SF)
What is the purpose of the `INT` instruction in assembly language?
To perform arithmetic operations on integers.
To define a new data type in assembly language.
To allocate memory for variables.
To generate a software interrupt for system calls or event handling.
Which instruction is used to clear the carry flag?
RLC
SBC
CLC
STC
What does the `LODSB` instruction do?
The LODSB instruction loads a byte from memory into the AL register.
The LODSB instruction loads a byte from the AL register into memory.
The LODSB instruction stores a byte from the AL register into memory.
The LODSB instruction loads a word from memory into the AX register.
Which register is used as the destination index for string operations?
RDI
EDI
AX
ESI
What is the effect of the `STC` instruction?
Sets the zero flag (ZF) to 1.
Increments the instruction pointer (IP) by 1.
Clears the carry flag (CF) to 0.
Sets the carry flag (CF) to 1.
Which instruction is used to compare two strings in assembly?
CMPSB
CMP
STRCMP
COMPARE
What does the `JC` instruction do?
Halts the execution of the program immediately.
Transfers control to the next instruction unconditionally.
Transfers control to a specified address if the zero flag is set.
Transfers control to a specified address if the carry flag is set.
Which flag indicates an overflow in arithmetic operations?
Zero Flag (ZF)
Carry Flag (CF)
Overflow Flag (OF)
Sign Flag (SF)
What is the purpose of the `CLI` instruction?
To halt the CPU until further notice.
To clear the interrupt flag and enable interrupts.
To initiate a system reset.
To disable all interrupts permanently.
Which instruction is used to jump to a specific address based on a condition?
Unconditional Jump Instruction
Branch Instruction
Conditional Jump Instruction
Return Instruction
What does the `SCASB` instruction do in assembly language?
The `SCASB` instruction clears the AL register and sets the DI register to zero.
The `SCASB` instruction adds a byte from the AL register to the address in the DI register.
The `SCASB` instruction compares the AL register with a byte at the address in the DI register.
The `SCASB` instruction moves a byte from the DI register to the AL register.
