A1 CS - VON NEUMANN/ASSEMBLY LANGUAGE

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

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1
New cards

CPU

central processing unit

The purpose of the CPU is to carry out the set of instructions given to the processor from a program

constantly process data and instructions in a fetch-decode-execute cycle

2
New cards

stored program concept

machine code instructions stored in main memory are fetched and executed serially by a processor

3
New cards

general purpose registers

additional registers in the CPU used for memory or data when needed, multipurpose, used for most instructions, used to hold results

4
New cards

specific purpose registers

used for certain instructions, specialised for specific task, hold status of a program

5
New cards

program counter

program counter holds the address of the next instruction to be executed; after content of PC is copied to MAR it is incremented by 1

6
New cards

MAR

Memory Address Register

holds address of current instruction

7
New cards

MDR

memory data register

holds data of the current instruction to be executed; memory buffer register

8
New cards

CIR

current instruction register

it recieves data from MDR; instructed and decoded and executed in this register

9
New cards

IX

index register

used in index addressing

used for loops, dumps, array index

10
New cards

status register

holds status of different processes, used by ALU to make decisions

11
New cards

control unit

  • brain of computer

  • maintain synchronisation of instructions w. the help of timing signals generated by system clock

  • decoding and execution of instructions

  • contains IAS, PC, CIR

12
New cards

ALU

arithmetic and logic unit

decision making is performed by this unit

contains accumulator register

13
New cards

memory unit

stores data permanently in secondary storage, fetches data from RAM towards CPU for execution

contains MAR and MDR

14
New cards

system clock

the system clock synchronises the entire fetch-execute cycle

15
New cards

overclocking

overclocking allows you to run your processor at higher clock speeds than originally intended

16
New cards

IAS/cache

Immediate Access Store, holds the data needed straightaway by the control unit

17
New cards

data bus

  • bidirectional bus

  • carries data/instructions

  • bus width is important as it defines amount of data a bus can carry

18
New cards

address bus

  • unidirectional

  • carries addresses

19
New cards

control bus

  • carries instructions to other components of computer

  • bidirectional

  • also used to carry timing signals

20
New cards

interrupts

signals generated from software or hardware to stop the process of processor for certain period of time

21
New cards

software interrupts

  • signal to the processor initiated by software

  • buffer is full

  • divide by zero

  • stack overflow

  • user input

22
New cards

hardware interrupt

  • printer out of paper

  • user presses key on keyboard

  • power failure

  • hardware failure

23
New cards

how interrupt is executed

  • at the end of FDE cycle, we check for interrupts

  • if interrupt has higher priority:

  • values of current instruction (PC along with other registers) are stored in STACK (memory)

  • load interrupt in the PC w. the help of ISR

  • interrupt is executed

  • check for further interrupts, if no interrupt, then previous instructions are loaded back to PC

24
New cards

assembly language

low-level programming language that communicates directly with the computer’s hardware. directly deals with registers; execution is faster

25
New cards

addressing modes

how we (assembly language) accesses our own memory

26
New cards

opcode

represents a specific instruction for the processor to perform

27
New cards

operand

the value on which the instruction is performed

28
New cards

instruction list

set of instructions (opcode+operand) that a microprocessor can understand and execute

29
New cards

immediate addressing

  • no memory is involved

  • operand acts as a value that is copied to accumulator

30
New cards

direct addressing

operand holds an address, contents of given address copied to ACC

31
New cards

indirect addressing

content of given address acts as a second address, contents of second address is copied to ACC

32
New cards

index addressing

we create a new address by adding given address to the value stored in Index Register, contents of new address is copied to ACC

33
New cards

relative addressing

memory is related from base address

if base address is not given it is considered 0

base address is stored in a register called base register

34
New cards

macros

set of instructions that performs specific task, they are also called subroutines, they can be called multiple times, less chances of errors that are fully tested

35
New cards

directives

they are instructions for the assembler, they are not programming code, just provide info to the assembler (starting address, space for variable, external file included)