Chapter 3 Flashcards

(50 cards)

1
Q

What is assembly language?

A

A symbolic representation of machine language instructions specific to a processor.

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

What is the native language of a microprocessor?

A

Machine language.

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

What are the two main parts of an assembly instruction?

A

Mnemonic (opcode) and Operands.

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

What is a mnemonic?

A

A symbolic name representing an operation code.

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

What are operands?

A

Specifiers indicating the source(s) and destination of data.

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

What optional elements may appear in an instruction?

A

Label and Comment.

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

What is a label?

A

A symbolic name for the address of an instruction.

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

How many instructions does the 8086/8088 support?

A

117 instructions.

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

Name the six major categories of 8086 instructions.

A

Data Transfer, Arithmetic, Logic, String Operations, Control Transfer, Processor Control.

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

What is an addressing mode?

A

The method used to specify the location of an operand.

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

What are the three types of operands in 8086?

A

Register Operands, Immediate Operands, Memory Operands.

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

How is physical memory accessed in 8086?

A

Using Segment Base Address (SBA) + Offset.

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

What is the formula for Physical Address?

A

PA = Segment × 10H + Offset.

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

What is Register Addressing Mode?

A

Both source and destination operands are registers.

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

Can all registers be accessed as byte (8-bit)?

A

No. Only AX, BX, CX, DX can be accessed as byte (AH/AL, etc.).

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

What must match in register operations?

A

Operand sizes must match.

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

What is a limitation of some instructions?

A

Some registers are used implicitly (e.g., AX and DX in multiplication).

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

What is Immediate Addressing Mode?

A

One operand is constant data included in the instruction.

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

When is the immediate value determined?

A

At assembly time.

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

Must immediate operand size match the destination?

A

Yes.

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

What is Direct Addressing Mode?

A

The offset is explicitly specified in the instruction.

22
Q

How is direct addressing indicated syntactically?

A

Using brackets [offset].

23
Q

What is the default segment for direct addressing?

A

Data Segment (DS).

24
Q

How can a different segment be accessed?

A

Using a segment override prefix.

25
What is Register Indirect Addressing Mode?
The offset is stored in a register.
26
Which registers can be used for indirect addressing?
BX, BP, SI, DI.
27
What is the default segment when BP is used?
Stack Segment (SS).
28
What is the default segment when BX, SI, or DI is used?
Data Segment (DS).
29
What is Based Addressing Mode?
Offset = Base register + displacement.
30
Which registers can be used as base registers?
BX and BP.
31
What type of displacement can be used?
16-bit direct displacement.
32
What is Indexed Addressing Mode?
Offset = Index register + displacement.
33
Which registers can be used as index registers?
SI and DI.
34
What is the default segment in indexed addressing?
Data Segment (DS).
35
What is Based-Indexed Addressing Mode?
Offset = Base register + Index register + optional displacement.
36
Which base registers can be used?
BX or BP.
37
Which index registers can be used?
SI or DI.
38
What is the default segment when BP is used in based-indexed mode?
Stack Segment (SS).
39
What is the default segment when BX is used in based-indexed mode?
Data Segment (DS).
40
What are assembler directives?
Commands that tell the assembler how to process the program (not executed by CPU).
41
What does ORG directive do?
Specifies the starting offset for code or data.
42
Can multiple ORG directives exist in one program?
Yes.
43
What does EQU directive do?
Defines symbolic constants.
44
What does DB directive do?
Defines and initializes byte-sized memory.
45
What does DW directive do?
Defines and initializes word-sized memory.
46
What does RESB directive do?
Reserves byte storage without initialization.
47
What does RESW directive do?
Reserves word storage without initialization.
48
What are the four stages of assembly program development?
Edit → Assemble → Link → Run.
49
What does the assembler generate?
Object file (.obj) and listing file (.lst).
50
What does the linker generate?
Executable file (.exe).