CS 003 - Module 2

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

1/82

flashcard set

Earn XP

Description and Tags

Historical Development of Computer

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

83 Terms

1
New cards

DEBUG

A line-oriented debugger in DOS, used as an assembler, disassembler, or hex dump tool

2
New cards

DEBUG allows to

  • Examine memory contents interactively

  • Modify memory data

  • Execute assembly programs

3
New cards

Command: CLS | Function: ?

Clear screen

4
New cards

Command: CD | Function: ?

Change directory

5
New cards

Command: DIR | Function: ?

List directory

6
New cards

Command: COPY | Function: ?

Copy files

7
New cards

Command: DEL | Function: ?

Delete file

8
New cards

Command: REN | Function: ?

Rename file

9
New cards

Command: MD | Function: ?

Make directory

10
New cards

Command: RD | Function: ?

Remove directory

11
New cards

Advantages of DEBUG

  • Free and universally available

  • Simple to use

  • Requires minimal memory

12
New cards

Command: Q | Description: ? | Example: -Q

Quit DEBUG and return to DOS

13
New cards

Command: H | Description: ? | Example: -H 000C 0008

Perform hex addition and subtraction (4-bit numbers)

14
New cards

Command: R | Description: ? | Example: -R, -R CX

Display or modify registers

15
New cards

Command: E | Description: ? | Example: -E 0200

Enter data or instructions into memory at a given address

16
New cards

Command: D | Description: ? | Example: -D 0200

Display memory contents (hex and ASCII) starting at address

17
New cards

Command: A | Description: ? | Example: -A 0100

Assemble program from mnemonic code into machine code

18
New cards

Command: T | Description: ? | Example: -T

Trace execution one instruction at a time

19
New cards

Command: G | Description: ? | Example: -G

Run the loaded program in memory

20
New cards

Command: U | Description: ? | Example: -U 0100

Unassemble machine code to mnemonic starting at address

21
New cards

Command: N | Description: ? | Example: -N A:SAMPLE.COM

Name the program file (8 character base + .COM extension)

22
New cards

Command: W | Description: ? | Example: -W

Write the program to disk

23
New cards

Rules of Debug Commands

  • Commands are not case sensitive.

  • Numbers are assumed to be hexadecimal unless specified.

  • Syntax for segment:offset is <segment>:<offset>.

24
New cards

Command: MOV | Description: ?

Copy/transfer data

25
New cards

Command: ADD | Description: ?

Add values

26
New cards

Command: SUB | Description: ?

Subtract values

27
New cards

Command: MUL | Description: ?

Multiply register by AX

28
New cards

Command: DIV | Description: ?

Divide AX by register

29
New cards

Command: DIV | Description: ?

Divide AX by register

30
New cards

Command: INC | Description: ?

Increment register by 1

31
New cards

Command: DEC | Description: ?

Decrement register by 1

32
New cards

Command: LOOP | Description: ?

Repeat block CX times

33
New cards

Von Neumann Architecture

  • Foundation of most modern computers

  • Stores both data and instructions in the same memory

  • Uses a single shared bus for data and instructions

34
New cards

Fixed Program Computers

Non-programmable, specific tasks (e.g., calculators)

35
New cards

Stored Program Computers

Can be programmed with different tasks (general-purpose)

36
New cards

Component: ? | Function: Stores data and instructions

Memory

37
New cards

Component: ? | Function: Executes instructions; includes ALU and Control Unit

CPU

38
New cards

Component: ? | Function: Performs arithmetic and logical operations

Arithmetic Logic Unit (ALU)

39
New cards

Component: ? | Function: Directs data flow, manages CPU operations

Control Unit (CU)

40
New cards

Component: ? | Function: Holds address of the next instruction to execute

Program Counter (PC)

41
New cards

Component: ? | Function: Stores current instruction being executed

Instruction Register (IR)

42
New cards

Component: ? | Function: Stores memory address for data/instruction fetch or store

Memory Address Register (MAR)

43
New cards

Component: ? | Function: Temporarily holds data moved between memory and CPU

Memory Data Register (MDR)

44
New cards

Component: ? | Function: Holds intermediate results in arithmetic/logical operations

Accumulator

45
New cards

Component: ? | Function: Temporary data storage during processing

General Purpose Registers

46
New cards

Component: ? | Function: Transfers data, addresses, and control signals across CPU, memory, and I/O devices

Bus

47
New cards

Component: ? | Function: Interface and hardware for communication with external devices

I/O Interface & Devices

48
New cards

Key Characteristics of Von Neumann Architecture

  • Single memory for both data and instructions

  • Shared bus for communication

  • Sequential execution of instructions, one at a time

49
New cards

Von Neumann Bottleneck

  • Limits CPU performance because data and instructions share the same bus and memory

  • Cannot process instructions and data simultaneously

  • Performance constrained by memory access speed and bus bandwidth

50
New cards

Advantages of Von Neumann Architecture

  • Simplified design and hardware

  • Cost-effective implementation

  • Flexible and supports general-purpose computing

  • Easier programming due to unified memory

  • Widely used in modern computers

51
New cards

Limitations of Von Neumann Architecture

  • Memory bottleneck limits performance

  • Sequential processing limits speed for complex operations

  • Increased power consumption due to frequent memory access

  • Limited scalability for high-performance tasks

  • Latency delays in fetching instructions and data

52
New cards

Programs & Execution

  • Stored on disk (OS, data, apps)

  • Loaded into memory before execution

  • CPU uses registers then executes arithmetic, data movement, addressing

53
New cards

Unit: ? | Description: Smallest unit; 0 (off) or 1 (on)

Bit

54
New cards

Unit: ? | Description: 8 bits + 1 parity bit (odd parity)

Byte

55
New cards

Unit: ? | Description: 2 bytes (16 bits)

Word

56
New cards

Unit: ? | Description: 4 bytes (32 bits)

Doubleword

57
New cards

Unit: ? | Description: 8 bytes (64 bits)

Quadword

58
New cards

Unit: ? | Description: 16 bytes (128 bits)

Paragraph

59
New cards

Unit: ? | Description: 1,024 bytes (2¹⁰)

Kilobyte (KB)

60
New cards

Unit: ? | Description: 1,048,576 bytes (2²⁰)

Megabyte (MB)

61
New cards

Processor Registers

Provide fast storage inside the CPU to avoid slow memory access

62
New cards

General Purpose Register

For arithmetic, logical operations, and temporary data. Used as:

  • 32-bit (EAX, EBX, ECX, EDX)

  • 16-bit (AX, BX, CX, DX)

  • 8-bit parts (AH, AL, etc.)

63
New cards

Pointer Registers

Hold addresses for instructions and stack

  • Instruction Pointer (IP)

  • Stack Pointer (SP)

  • Base Pointer (BP).

64
New cards

Index Registers

Used for string and indexed operations

  • Source Index (SI)

  • Destination Index (DI)

65
New cards

Control Registers

Instruction Pointer and Flags registers controlling operation states.

66
New cards

Register: AX | Special Use: ?

Primary accumulator, I/O, arithmetic

67
New cards

Register: BX | Special Use: ?

Base register for addressing

68
New cards

Register: CX | Special Use: ?

Count register for loops

69
New cards

Register: DX | Special Use: ?

Data register, I/O, multiplication/division

70
New cards

Flag: Overflow (OF) | Meaning: ?

Overflow occurred in arithmetic operation

71
New cards

Flag: Direction (DF) | Meaning: ?

String operation direction (0=left-to-right, 1=right-to-left)

72
New cards

Flag: Interrupt (IF) | Meaning: ?

Enables/disables external interrupts

73
New cards

Flag: Trap (TF) | Meaning: ?

Enables single-step processor mode

74
New cards

Flag: Sign (SF) | Meaning: ?

Indicates sign of result (0=positive, 1=negative)

75
New cards

Flag: Zero (ZF) | Meaning: ?

Zero result flag (1 if result is zero)

76
New cards

Flag: Auxiliary Carry (AF) | Meaning: ?

Carry between bits 3 and 4

77
New cards

Flag: Parity (PF) | Meaning: ?

Parity of result (even/odd number of 1-bits)

78
New cards

Flag: Carry (CF) | Meaning: ?

Carry from high-order bit in arithmetic/shift

79
New cards

Segment Registers

Used to access different segments in memory for code, data, and stack

80
New cards

Register: CS | Purpose: ?

Code segment (instructions)

81
New cards

Register: DS | Purpose: ?

Data segment

82
New cards

Register: SS | Purpose: ?

Stack segment

83
New cards

Register: ES, FS, GS | Purpose: ?

Extra segments for data