CS-150 – Low-Level Programming: Machine & Assembly Language Vocabulary

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

1/34

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards summarizing key terms, components, and instructions related to machine language, assembly language, and the Pep/9 virtual computer as presented in the CS-150 lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1
New cards

Computer

A programmable electronic device that can store, retrieve, and process data.

2
New cards

Stored-program computer (von Neumann)

Architecture in which both data and the instructions that manipulate them are stored together in memory as bit patterns.

3
New cards

Fetch–Decode–Execute cycle

The repetitive process by which a CPU retrieves an instruction, interprets it, and carries it out.

4
New cards

Abstraction (programming)

Hiding low-level details so programmers can focus on desired functionality; higher-level languages give more abstraction than assembly or machine code.

5
New cards

Machine language

Binary-coded instructions built into a CPU and executed directly by the hardware.

6
New cards

Assembly language

A low-level programming language that uses mnemonic names for machine opcodes; translated to machine code by an assembler.

7
New cards

Assembler

A program that converts assembly language source code into machine-language object code.

8
New cards

Virtual computer

A hypothetical machine used for teaching that models key features of real hardware.

9
New cards

Pep/9

A 16-bit virtual computer (designed by Stanley Warford) with 40 machine instructions, used in CS-150 to illustrate low-level programming concepts.

10
New cards

Program Counter (PC)

Pep/9 register holding the address of the next instruction to execute.

11
New cards

Instruction Register (IR)

Pep/9 register that temporarily stores the current instruction’s opcode and operand during execution.

12
New cards

Accumulator (A)

Pep/9 16-bit register used to hold data and arithmetic/logic results.

13
New cards

Memory-mapped I/O

Technique where specific memory addresses are reserved for input/output devices instead of ordinary RAM.

14
New cards

Pep/9 input device address

Memory location FC15 (hex) that supplies one input byte when read.

15
New cards

Pep/9 output device address

Memory location FC16 (hex) that outputs one byte when written.

16
New cards

Pep/9 instruction format

Consists of an opcode (4 bits), addressing-mode/flag bits, a register specifier or 5th opcode bit, and an optional 16-bit operand.

17
New cards

Opcode

Portion of an instruction that specifies which operation the CPU should perform.

18
New cards

Addressing mode

Field in an instruction that tells the CPU how to interpret the operand (e.g., as a value, an address, etc.).

19
New cards

Immediate addressing mode

Addressing mode 000 in Pep/9 where the operand itself is the data to use.

20
New cards

Direct addressing mode

Addressing mode 001 in Pep/9 where the operand gives the memory address of the data.

21
New cards

Pseudo-op

Directive to the assembler (not an executable CPU instruction) that affects assembly or reserves memory.

22
New cards

.END

Pep/9 pseudo-op that marks the end of an assembly-language program.

23
New cards

.ASCII

Pseudo-op that stores a string of ASCII characters (automatically appends terminating 00H).

24
New cards

.WORD

Pseudo-op reserving one 16-bit word of memory and optionally initializing it.

25
New cards

.BLOCK

Pseudo-op reserving a specified number of bytes in memory without initialization.

26
New cards

Label (assembly)

User-defined name placed before an instruction or data location, used as a symbolic address in operands or branches.

27
New cards

BR

Pep/9 unconditional branch instruction; sets PC to the specified address.

28
New cards

BRLT

Pep/9 branch that executes if the Negative flag is set (accumulator < 0).

29
New cards

LDBA

Instruction that loads a byte into the accumulator (form chosen by addressing mode).

30
New cards

STBA

Instruction that stores the low byte of the accumulator to a memory location or I/O device.

31
New cards

DECI

Pep/9 instruction that reads a signed decimal number from input and stores it at a memory address.

32
New cards

DECO

Pep/9 instruction that outputs a signed decimal number, either immediate or from memory.

33
New cards

STRO

Instruction that outputs a null-terminated ASCII string from memory.

34
New cards

CPWA

Pep/9 instruction that compares a memory word with the accumulator, setting condition flags.

35
New cards

STOP

Opcode 0000 in Pep/9; halts program execution.