Chapter 3 Flashcards
What are the types of integer values in assembly?
binary, decimal, hexadecimal
Integer constants can be represented in various numeral systems.
What does an arithmetic expression in assembly involve?
Using assembly instructions to perform calculations
Arithmetic expressions can include addition, subtraction, multiplication, and division.
How are character literals stored in assembly?
In ASCII format
Each character is represented by its corresponding ASCII value.
How are strings represented in assembly?
Enclosed in single or double quotes
This allows the assembler to recognize string literals.
What are reserved words in assembly?
Instructions like MOV, ADD, MUL
These words are predefined and cannot be used as identifiers.
What are identifiers in assembly?
User-defined variable names
Identifiers must follow specific naming rules.
What is the difference between NASM and MASM?
They differ in syntax
NASM is the Netwide Assembler, while MASM is the Microsoft Macro Assembler.
What are labels in assembly?
Memory locations referenced by name
Labels provide a way to identify specific locations in code.
What are symbolic constants?
Defined using the EQU directive
Symbolic constants give meaningful names to constant values.
What are the data types in assembly?
sbyte, sword, sdword, real4, real8
These data types represent signed and unsigned integers and floating-point numbers.
What is little-endian?
Least significant byte stored first
This format affects how multi-byte data types are stored in memory.
What is big-endian?
Most significant byte stored first
This is another method of data storage that differs from little-endian.
What does the code section in assembly contain?
Instructions
This section is executed by the CPU.
What does the data section in assembly store?
Variables and constants
This section is used to allocate memory for data.
How are arrays defined in assembly?
Using BYTE, WORD, DWORD, etc.
These directives specify the size of the array elements.