[Semester 2] ISA and Assembly Flashcards
Instruction Set Architecture (ISA)
Defines how a machine behaves. It also aims to execute instructions efficiently (i.e. less gates)
Instruction sets
Patterns of bits designed by the designer of the processor
Opcode
Holds which operation is being performed and how the result will be processed
Operand
Holds data in an operation which needs to be acted on
Flag
Indicates whether an operand is from memory
Complex Instruction Set Computer (CISC)
Aims to execute code in as few assembly lines as possible
Reduced Instruction Set Computer (RISC)
Like CISC but with separate load and store instructions
Why might more RAM be needed when using RISC?
Instruction length is always the same, which can result in more lines than CISC
True or false: RISC instructions can be executed in one clock cycle
True! This means that less transistors are needed.
How many statements per instruction can assembly language have?
1
Fetch
An instruction is retrieved from the memory address, which is stored in the program counter then the instruction register. The program counter then moves to the next instruction.
Decode
A decoder decodes and interprets the instruction in the instruction register
Execute
Control unit sends the decoded instruction as a sequence of signals to relevant parts of the CPU