UNIT 5 [cmsc 311]

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:22 AM on 3/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

How many registers does the LC-3 have and what is their size?

8 general-purpose (R0-R7), 16 bit size each(1 word)

2
New cards

How many instructions does the LC-3 have and what is their size?

15 -> each 16 bits

3
New cards

Define address space and word size in the LC-3.

total # of memory locations available = 2^16. word size = 16 bits which each memory location stores

4
New cards

Explain how opcodes interpret operands.

Each opcode interprets the bit patterns of its operands based on the type of instruction.

5
New cards

Define the five addressing modes in the LC-3.

  • Immediate: operand is part of instruction.

  • Register: operand is stored in a specified general-purpose register

  • PC-relative: address is found by adding an offset to program counter

  • Indirect: instruction points to a memory location that contains another address

  • Base + Offset: The address is calculated by adding an offset to a base register.

6
New cards

Explain the difference between LD, LDI, and LDR.

LD: Uses PC-relative addressing & accesses memory once to load data

LDI: Uses indirect addressing & accesses memory twice, 1. get address→ 2.get data

LDR: uses base + offset addressing & calculates address using register + offset

7
New cards

What are the NZP flags and how are they used?

The NZP flags represent negative, zero, and positive values. They are set based on the result of an operation and are used by branch instructions to determine whether a branch should be taken.

8
New cards

What makes a branch conditional vs unconditional?

A branch is conditional when it depends on specific NZP flags (such as BRz or BRp). A branch is unconditional when all flags are included (BRnzp), meaning it always executes.

9
New cards

Describe the differences between load operations in the LC-3.

Load operations differ based on how they calculate memory addresses.

10
New cards

Describe store operations.

Store operations work similarly to load operations but write data to memory instead of reading from it. ST uses PC-relative addressing, STI uses indirect addressing, and STR uses base + offset addressing.

11
New cards

What are the four types of instructions in the LC-3?

  • OPERATE

  • DATA MOVEMENT

  • CONTROL

  • SPECIAL INSTRUCTIONS

Explore top flashcards

flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)
flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)