Flashcards
SLR 7 - Types of Programming Language
Cards in this deck (14)
- 1ParadigmsA way of thinking/programming
- 2Procedural LanguagesProcedural Languages Include:
Sequence
Selection
Iteration
Procedures
Function - 3Object Oriented LanguageOrganised by objects which mimic the real world
Utilises Inheritance and Encapsulation - 4InheritanceObjects can inherit methods from super classes
Classes can use code from classes higher in the chain
Commands are structured in two parts - 5EncapsulationValues inside of methods are hidden from other methods
- 6Assembly LanguagesProgramming languages which:
-Consists of Mnemonics
-Processor Specific
-Directly Interacts with memory - 7Opcode and OperandOpcode - Instruction part of an assembly command
Operand - The address of the data being used in the command - 8LMC Instruction Set (1/2)ADD - Add
SUB - Subtract
LDA - Load
BRA - Branch Always
BRZ - Branch if Zero - 9LMC Instruction Set (2/2)BRP - Branch if Positive
INP - Input
OUT - Output
HLT - Halt (Stop)
DAT - Define Data Locations and labels - 10Methods of Addressing MemoryImmediate
Direct
Indirect
Indexed - 11Immediate AddressingThe value used in the operand is the actual value used
ADD 10 means add 10 not what is in memory address 10 - 12Direct AddressingThe operand refers to a memory location where the value is found
ADD 10 means to add whatever is at memory address 10 - 13Indirect AddressingThe operand points to a memory location which stores another memory address which points to the real value
ADD 10 means goto the memory address that memory location 10 says for the value - 14Indexed AddressingUses the Index Register (IR) which is used and increments with the memory addresses
Used if you want to add multiple array items
Add [starting address] + IR
Information
- Description
- Flashcards on SLR 7 - Types of Programming Language, created by Declan Gallagher on 13/01/2020.
- Created by
- Declan Gallagher
- Views
- 2
- Rating