cspp topic 3

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

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:06 PM on 5/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

51 Terms

1
New cards

what does the CPU do?

controls and performs instructions

2
New cards

what is a microprocessor?

a silicon chip that modern CPUs are commonly housed on

3
New cards

what are the three key components of the CPU?

ALU, CU, registers

4
New cards

how does the fetch-execute cycle work generally?

computational instructions are retrieved from memory, decoded into recognisable operations, and executed to affect the CPU’s current state

5
New cards

what occurs during the fetch cycle?

  • the PC holds the address of the next instruction

  • this address is sent through the address bus to memory

  • CU issues a Read signal

  • memory places the instruction on the data bus

  • IR stores this fetched instruction for decoding

6
New cards

what occurs during the decode cycle?

  • after fetched, CPU begins to decode instruction

  • CU analyses the binary instruction to understand what action the CPU needs to perform

  • identifies which parts of the CPU will be involved

  • CU sends the necessary control signals to prepare the system for execution

7
New cards

how is the instruction interpreted during the decode cycle?

  • CPU examines the fetched binary instruction

  • the first few bits of the instruction form opcode, tells the CPU what operation to perform

  • remaining bits of the instruction are operands, identify where to get the data

8
New cards

what is opcode?

operation code, tells the CPU what operation to perform

9
New cards

what occurs during the execution cycle?

  • once instruction is decoded, CPU carries out the required operation

  • CU activates the necessary circuits, or triggers data movement between memory and CPU

  • ALU performs computation for arithmetic or logic instructions

  • for data transfer instructions, data is moved to or from memory between internal parts of the CPU

10
New cards

what does the ALU do?

receives control signals from the CU during execution phase, takes all inputs from data lines or registers, performs the operation, and sends the result back for storage or further use

11
New cards

what do registers do?

provide fast, temporary storage, during computation

12
New cards

what does the CU do?

  • directs the CPU to execute a sequence of instructions in order

  • fetches, decodes, and executes each instruction, ensuring the ALU and registers work together

  • decodes program instructions and handles logistics for the execution of decoded instructions

13
New cards

what does the IR do?

contains most recent instruction to be fetched

14
New cards

what does the PC do?

tracks the memory address of the next instruction to be executed

15
New cards

what does the MAR do?

contains address of the region of memory to be read or written

16
New cards

what does the MDR do?

contains data fetched from memory or data ready to be written to memory

17
New cards

what is the main difference between the 68008 and 68000 models?

68008 processor has smaller external buses

  • has an 8-bit external data bus (16-bit on 68000)

  • has a 20-bit external address bus (24-bit for 68000)

18
New cards

describe the internal architecture of 68000 CPU.

  • internal registers are 32 bits wide

  • internal data buses are 16-bits wide

  • 8-bit external data bus

  • 20-bit external data bus

19
New cards

what are the D0-D7 registers?

32-bit data registers that store frequently used values / intermediate results

20
New cards

what are the A0-A6 registers?

address registers used as pointer registers in the calculation of operand addresses

21
New cards

what are A7 registers?

address registers used by the processor as a system stack pointer to hold subroutine return addresses etc.

22
New cards

what is CCR?

condition code register, register that contains flags indicating the status of the processor after arithmetic and logical operations

23
New cards

what is a status register?

16 bits (consists of two 8-bit registers),

24
New cards

what is the stack pointer used for?

as a pointer into the system stack

25
New cards

what is the system stack?

a LIFO structure that provides temporary storage of essential processor state

26
New cards

what is the PC?

program counter, keeps track of the address at which the next instruction will be found, incremented to point to the next instruction when the current instruction has been read

27
New cards

what is RTL?

register transfer language, used to describe the operations of a microprocessor as it is executing instructions

28
New cards

how is instruction fetching written in RTL?

  1. [MAR] ← [PC]

  2. [PC] ← [PC] + 1

  3. [MBR] ← [MS([MAR])]

  4. [IR] ← [MBR]

  5. CU ← [IR(opcode)]

29
New cards

what is an advantage of using C?

you can work at the hardware-software interface and is compiled to assembler (the low level instruction set of the microprocessor)

30
New cards

how does assembly work?

uses easily remembered mnemonics for each instruction, allows memory locations and constants to be given symbolic names

31
New cards

what are advantages of assembly language?

allows memory locations and constants to be given symbolic names, a point in a program can be referred to by its name rather than a numeric address

32
New cards

what are the two aspects to the 68008 instruction set?

instructions, addressing modes

33
New cards

what are instructions in an instruction set?

the commands that tell the processor what operations to perform

34
New cards

what are addressing modes in an instruction set?

the ways in which the processor can access data or memory locations

35
New cards

what are the five categories of instructions in the 68008 instruction set?

  1. data movement

  2. arithmetic

  3. logical

  4. branch

  5. system control

36
New cards

what form are 68008 assembler instructions written?

operation.datatype source, destination
where the operation can be

  • .b (byte)

  • .w (word - 2 bytes)

  • .l (long word - 4 bytes)

37
New cards

why do arithmetic instructions only operate on integers in the 68008 model?

it does not have hardware floating point support

38
New cards

what are logical instructions?

instructions that perform bit-wise operations on data and include AND, OR, NOT

39
New cards

what are branch instructions used for?

causes the processor to branch (jump/GOTO) the labelled address, can test the state of the CCR bits and branch if a certain condition is met

40
New cards

what are subroutines useful for?

frequently used sections of a program, reduces program size, improves readability, reduces repeated debugging

41
New cards

what happens during JSR (subroutine call)?

saves (pushes) the contents of the PC on the stack, puts start address of subroutine in PC

42
New cards

what happens during RTS (return from subroutine)?

restores (pops) the return address from the stack and puts it in PC, so the stack stores where to return from a subroutine

43
New cards

how does the stack allow for subroutines to call another subroutine?

has multiple return addresses on the stack in this case

44
New cards

what are addressing modes?

how we tell the computer where to find data it needs

45
New cards

where can systems data be located in the 68008 model?

in a data register, within the instruction itself, or in external memory

46
New cards

what does it mean for addressing modes to have expressive power?

they can provide data exactly, specify where data is, or specify how to go about finding data

47
New cards

what are the 5 types of addressing modes in 68008?

  1. data or address register direct

  2. immediate addressing

  3. absolute addressing

  4. address register indirect (5 variations)

  5. relative addressing

48
New cards

how does data or address register direct work in 68008?

the address of an operand is specified by either a data register or an address register

49
New cards

how does immediate addressing work in 68008?

the operand forms part of the instruction and remains constant throughout the execution of a program

50
New cards

how does absolute addressing work in 68008?

the operand specifies the location in memory explicitly, meaning that no further processing required. does not use a # symbol

51
New cards

why does absolute addressing not allow position independent code?

a program will consistently use the same memory address