Chapter 1 & 2 Flashcards

1
Q

Machine Level 4

A

High-Level Language - application oriented languages which are compiled into assembly language

Ex: C++, Java

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

Machine Level 3

A

Assembly Language

  • instruction mnemonics that have one-to-one correspondence to machine language
  • Translated into ISA (level 2)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Machine Level 2

A

Instruction Set Architecture (ISA)

  • AKA conventional machine language
  • executed by level 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Machine Level 1

A

Digital Logic

  • CPU, system bus, memory
    • all it does at hardware level is adding and comparing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

MSB

A

Most Significant Bit

  • leftmost bit
  • in a byte, bit 15
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

LSB

A

Least significant bit

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

What indicates that a number is negative?

A

The highest bit is turned on

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

Binary Subtraction

A

Convert number to be subtracted to two’s complement (AKA additive inverse) and add

Flip the bits, add 1

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

Boolean Operators

A

NOT (weird L rotated 90 degrees)
AND ^
OR v

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

Boolean Operator Precedence

A
  1. NOT
  2. AND & OR

Use () to change precedence

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

Control Unit (CU)

A
  • Part of the CPU

- Acts like a traffic cop, directing

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

Arithmetic Logic Unit (ALU)

A
  • Part of the CPU

- Performs arithmetic

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

Clock

A
  • Part of the CPU

- Synchronizes CPU operations

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

Bus

A

Set of connections that connects CPU to some other component on the motherboard

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

Data Bus

A

How memory is transported

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

Instruction Execution Cycle

A
  1. Fetch (brings data/instruction to CPU)
  2. Decode (sets it up to do something)
  3. Fetch operands
  4. Execute
  5. Store output
17
Q

Cache

A

High speed memory location

Level 1: inside the CPU

Level 2: outside the CPU

18
Q

Modes of Operation

A
  1. Protected mode - native mode (Windows, Linux)
  2. Real-address mode - native MS-DOS
  3. System management mode - power management, system security, diagnostics
  4. Virtual-8086 mode - hybrid of protected
19
Q

EAX

A

Accumulator

20
Q

ECX

A

Loop counter

21
Q

ESP

A

Stack pointer

22
Q

ESI, EDI

A

Index registers

23
Q

EBP

A

Base pointer / frame pointer

Holds the base address of the stack frame

24
Q

CS

A

Code segment

25
Q

DS

A

Data segment

26
Q

SS

A

Stack segment

27
Q

EIP

A

Instruction pointer

28
Q

EFLAGS

A

Status and control flags

29
Q

Carry Flag

A

Set when unsigned value is out of range

30
Q

Overflow Flag

A

Set when signed value is out of range

31
Q

Sign Flag

A

Set when destination is negative

32
Q

Zero Flag

A

Set when destination is 0

33
Q

I/O Level 1

A

BIOS - drivers that communicate directly with devices

34
Q

I/O Level 2

A

OS function

35
Q

I/O Level 3

A

Library - high-level language function

Ex: C++, Java

36
Q

I/O Level 0

A

Hardware