SLR 07 - Types of Programming Language Flashcards
What are the types of Addressing Methods?
Immediate
Indexed
Direct
Indirect
What is direct Addressing?
This happens when the Operand value is the address to fetch from or execute onto. (e.g ADD 5 means add the value from address 5)
What is Immediate Addressing?
The Operands value being used for the instruction. (e.g ADD 5 means add the value of 5)
What is indirect addressing?
The operand giving an address, in said address another address value is contained for execution. (e.g in address 5, 45 is contained. ADD 5 means add the value from register by indirect addressing 45)
What is the problem with direct addressing and how does indirect addressing fix it?
Direct addressign uses 4 bits, only allowing use of registers 0-15
Registers are 8 bit, by using indirect addressing you can then access registers 16-255
What is indexed addressing?
It uses the address equal to the Operand plus the Index Register, which increments every cycle.
What is a paradigm?
An example of a way to complete a process.
What is a language with paradigms called?
Turing Complete
What can turing complete languages do?
Solve all computable problems
What is machine code?
Low levels of abstraction
It programs in 1s and 0s
What is Assembly Language?
Written in Mnemonics that are a 1:1 with sequences of machine code
What are High-Level languages?
They have high levels of abstraction
Each function has a 1:M relationship with lines of machine code
What can High-Level languages be divided into?
Imperative and Declarative
What are the 2 main Paradigms in imperative languages?
Procedural Programming
Object-Oriented Programming
What are Procedural programs?
A paradigm where programs are built on several subroutines?