Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
62 Cards in this Set
- Front
- Back
What symbol is used to denote a hexadecimal number?
|
h
|
|
What symbol is used to denote a binary number?
|
b
|
|
What symbol is used to denote a decimal number
|
d (or none -- decimal is the default)
|
|
To denote a string or character, what must surround it?
|
quotes or double quotes
|
|
When a string is being stored in a registry or in memory, how much memory is used?
|
each character occupies a single byte
|
|
What is the length range of an identifier?
|
1-247 characters, including digits
|
|
Are identifiers case sensitive?
|
no
|
|
What can the first character of an identifier be?
|
letter, _, @, ?, or $
|
|
Can reserved words be used as identifiers?
|
no
|
|
What are directives?
|
commands that are recognized and acted upon by the assembler
|
|
What are directives used for?
|
declare code, data areas, select memory model, etc
|
|
Are directives case sensitive?
|
no
|
|
T or F:
Different assemblers have different directives. |
TRUE
|
|
Are directives part of the instruction set?
|
no
|
|
When are instructions executed?
|
at runtime
|
|
What executes instructions?
|
the CPU
|
|
What assembles instructions into machine language?
|
the assembler
|
|
What do instructions contain?
|
Label, Mnemonic, Operand, Comment
|
|
What contents of instructions are required?
|
Mnemonic and operands (depending on the instruction)
|
|
What contents of instructions are optional?
|
Label, Comment, and operands (depending on the instruction)
|
|
What are Labels?
|
a place marker (like a variable) that marks the address (offset) of code and data
|
|
What is the length range of a label?
|
1-247 characters, including digits
|
|
Arelabels case sensitive?
|
no
|
|
What can the first character of a label be?
|
letter, _, @, ?, or $
|
|
Can reserved words be used as labels?
|
no
|
|
T or F:
A data label does not need to be unique. |
FALSE
|
|
What is the notation difference between a code label and a data label?
|
a code label is followed by a colon
|
|
List three examples of instruction mnemonics.
|
MOV, ADD, SUB, MUL, INC, DEC
|
|
Name four operand types.
|
constant (ex: 96), constant expression (ex: 2 + 4), register (ex: Eax), and memory (ex: count)
|
|
What is the relationship between mnemonics and operands?
|
a mnemonic acts on the operand
|
|
Which operands are called 'immediate operands'?
|
constant and constant expression
|
|
What is an example of a mnemonic that does not have an operand?
|
stc (set carry flag)
|
|
What is an example of a mnemonic that has only one operand?
|
inc (increment)
|
|
What are examples of mnemonics that have two operands?
|
add, sub, mul
|
|
What is the integer data type of a BYTE?
|
unsigned 8-bit
|
|
What is the integer data type of an SBYTE?
|
signed 8-bit
|
|
What is the integer data type of a WORD?
|
unsigned 16-bit
|
|
What is the integer data type of an SWORD?
|
signed 16-bit
|
|
What is the integer data type of a DWORD?
|
unsigned32-bit
|
|
What is the integer data type of an SDWORD?
|
signed 32-bit
|
|
What is the integer data type of a QWORD?
|
64-bit
|
|
What is the purpose of the data definition statement?
|
to set aside storage in memory for a variable
|
|
In a data definition statement, is assigning a name (label) required?
|
no, it is optional
|
|
What is the syntax of a data definition statement?
|
[name] directive initializer
|
|
What do all data definition statement initializers become?
|
binary data in memory
|
|
What is an example of a character constant stored in a single byte?
|
'A'
|
|
What is the smallest unsigned byte that can be stored in a single byte?
|
0
|
|
What is the largest unsigned byte that can be stored in a single byte?
|
255
|
|
What is the smallest signed byte that can be stored in a single byte?
|
-128
|
|
What is the largest signed byte that can be stored in a single btye?
|
+127
|
|
What symbol is used to identify an unitialized byte?
|
?
|
|
What is the offset?
|
the first space in memory allocated for an array or string to identify the beginning
|
|
How is a string implemented?
|
as an array of characters
|
|
T or F:
A string often will be null-terminated? |
TRUE
|
|
What is the purpose of the DUP operator?
|
to allocate an array or string
|
|
Counter and Argument must be what type of operands?
|
constants or constant expressions
|
|
What is 'Little Endian Order'?
|
all data types larger than a byte store their individual bytes in REVERSE ORDER. The least significant byte occurs at the first (lowest) memory address.
|
|
How can you calculate the size of a byte array?
|
ListSize = $ - list
(subtracting the address of the list from the current location counter) |
|
How can you calculate the size of a word array?
|
ListSize = ($ - list) / 2
(gives number of words, not bytes) |
|
How can you calculate the size of a DWORD array?
|
ListSize = ($ - list) / 4
(gives number of dwords, not bytes) |
|
What does the operator, SIZEOF, return?
|
the number of BYTES in an array
|
|
What does the operator, LENGTHOF, return?
|
the number of ELEMENTS in an array NOT BYTES!
|