Module #8 Study Deck Flashcards
Which of the following string primitives will copy a BYTE from the AL register to the memory location pointed to by EDI?
* MOVSB
* CMPSB
* SCASB
* STOSB
* LODSB
STOSB
Which of the following string primitives will modify the EDI register? Check all that apply.
* STOSB
* SCASB
* LODSB
* CMPSB
* MOVSB
- STOSB
- SCASB
- CMPSB
- MOVSB
Which of the following string primitives will modify the ESI register? Check all that apply.
* SCASB
* MOVSB
* LODSB
* STOSB
* CMPSB
MOVSB
LODSB
CMPSB
Which of the following string primitives will compare the BYTEs stored in the memory locations pointed to by EDI and ESI?
CMPSB
SCASB
LODSB
STOSB
MOVSB
CMPSB
The REP prefix checks the value of ECX but will not modify it.
True / False
False
The REPNE prefix checks the value of the Zero flag but requires its operand-instruction (the instruction which follows it) to modify the flag.
True / False
True
Which of the following would be appropriate to scan through one string, stopping when a character in AL is successfully matched to a character in the string? Assume AL, ECX, ESI, and EDI have already been set appropriately (if necessary).
* REPE SCASB
* REPE CMPSB
* REPNE CMPSB
* REPNE SCASB
REPNE SCASB
Which structure is the following true for?
_________ are translated only once, and can be called many times.
Neither Macros Nor Procedures
Procedures
Macros
Both Macros and Procedures
Procedures
Which structure is the following true for?
_________ may have LOCAL labels.
- Neither Macros Nor Procedures
- Macros
- Both Macros and Procedures
- Procedures
Both Macros and Procedures
Which structure is the following true for?
_________ have a return mechanism involving the system stack.
- Both Macros and Procedures
- Macros
- Procedures
- Neither Macros Nor Procedures
Procedures
Which structure is the following true for?
For _________, the entire code is substituted for each call.
- Procedures
- Neither Macros Nor Procedures
- Macros
- Both Macros and Procedures
Macros