Chapter 3 Flashcards

1
Q

What are the types of integer values in assembly?

A

binary, decimal, hexadecimal

Integer constants can be represented in various numeral systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does an arithmetic expression in assembly involve?

A

Using assembly instructions to perform calculations

Arithmetic expressions can include addition, subtraction, multiplication, and division.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are character literals stored in assembly?

A

In ASCII format

Each character is represented by its corresponding ASCII value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are strings represented in assembly?

A

Enclosed in single or double quotes

This allows the assembler to recognize string literals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are reserved words in assembly?

A

Instructions like MOV, ADD, MUL

These words are predefined and cannot be used as identifiers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are identifiers in assembly?

A

User-defined variable names

Identifiers must follow specific naming rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between NASM and MASM?

A

They differ in syntax

NASM is the Netwide Assembler, while MASM is the Microsoft Macro Assembler.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are labels in assembly?

A

Memory locations referenced by name

Labels provide a way to identify specific locations in code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are symbolic constants?

A

Defined using the EQU directive

Symbolic constants give meaningful names to constant values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the data types in assembly?

A

sbyte, sword, sdword, real4, real8

These data types represent signed and unsigned integers and floating-point numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is little-endian?

A

Least significant byte stored first

This format affects how multi-byte data types are stored in memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is big-endian?

A

Most significant byte stored first

This is another method of data storage that differs from little-endian.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the code section in assembly contain?

A

Instructions

This section is executed by the CPU.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the data section in assembly store?

A

Variables and constants

This section is used to allocate memory for data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are arrays defined in assembly?

A

Using BYTE, WORD, DWORD, etc.

These directives specify the size of the array elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly