Types of Instructions and Addressing Modes in Assembly

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Three-Address Instruction

An instruction with two source operands and one destination (e.g., ADD R1, R2, R3).

2
New cards

Two-Address Instruction

One operand acts as both a source and destination (e.g., ADD AX, BX).

3
New cards

One-Address Instruction

Uses accumulator and one memory operand (e.g., ADD B).

4
New cards

Zero-Address Instruction

Uses a stack; operands are implied (e.g., postfix A B +).

5
New cards

Addressing Modes

Techniques for locating data/operands used in instructions.

6
New cards

Direct Addressing

Address holds value.

7
New cards

Indirect Addressing

Address holds location of value.

8
New cards

Register Indirect Addressing

Register holds address of value.

9
New cards

Displacement Addressing

Used for arrays, structures, stack frames (offset + base).

10
New cards

Stack Addressing

Accesses operands via stack (LIFO), using stack pointer (SP).

11
New cards

Instruction Length

Affects performance, memory usage, and code speed.

12
New cards

Assembly Language

Human-readable machine code with mnemonics.

13
New cards

Advantage of Assembly

Precise control and high efficiency.

14
New cards

Disadvantage of Assembly

Harder to learn and debug; not portable.

15
New cards

Parts of an Assembly Statement

Label, mnemonic, operands, comment.

16
New cards

Pseudo-instructions

Assembler-only directives (e.g., .DATA, .ORG, .END).

17
New cards

Logic for expression (A AND B) OR (C AND NOT D)

Use 2 AND gates, 1 NOT, and 1 OR gate.