chapter 3 -Assembly Language Fundamentals Flashcards
Assembly language statements are divided into:
A) Procedures and Functions
B) Instructions and Directives
C) Loops and Conditions
D) Labels and Mnemonics
B) Instructions and Directives
Which of the following is an executable instruction?
A) TITLE
B) BYTE
C) MOV
D) END
C) MOV
Directives in assembly language:
A) Generate machine code
B) Allocate storage or define segments
C) Are executed at runtime
D) Are not case sensitive
B) Allocate storage or define segments
What does PROC indicate in assembly language?
A) Start of a code segment
B) End of a program
C) Start of a procedure
D) End of a data segment
C) Start of a procedure
Which directive specifies the end of the program?
A) END
B) TITLE
C) DATA
D) CODE
A) END
In a program template, the .code segment is:
A) Writable and executable
B) Only writable
C) Executable but read-only
D) Used for data declaration
C) Executable but read-only
The MOV instruction is used for:
A) Arithmetic operations
B) Transferring data
C) Subtracting data
D) Comparing values
B) Transferring data
What does the CALL instruction do?
A) Transfers control to a procedure
B) Compares two values
C) Moves data between registers
D) Sets flags in the CPU
A) Transfers control to a procedure
A two-operand instruction format includes:
A) Label, mnemonic, operand
B) Mnemonic, two operands, comment
C) Label, comment, data
D) Mnemonic, operand, directive
B) Mnemonic, two operands, comment
A WORD in assembly language refers to:
A) 1 byte
B) 2 bytes
C) 4 bytes
D) 8 bytes
B) 2 bytes
Which of these defines a signed 8-bit value?
A) BYTE
B) SBYTE
C) DWORD
D) QWORD
B) SBYTE
A string in assembly language is:
A) A null-terminated array of characters
B) A sequence of integers
C) A register containing characters
D) Limited to 4 characters
A) A null-terminated array of characters
The DUP operator is used to:
A) Define a procedure
B) Allocate space for an array
C) Compare two operands
D) Access memory addresses
B) Allocate space for an array
A symbolic constant is defined using:
A) BYTE
B) EQU
C) PROC
D) DATA
B) EQU
What does the $ operator represent in assembly language?
A) Start of a data segment
B) Current memory location
C) End of a procedure
D) Address of the next instruction
B) Current memory location