click below
click below
Normal Size Small Size show me how
programming language
1.2.4 - types of programming language
| Term | Definition |
|---|---|
| immediate addressing | preforms the literal interpretation of the operand’s number via the opcode |
| immediate addressing example | “ADD 8” to mean to add 8 to the accumulator |
| direct addressing | to preform the opcode on the address stated by the operand |
| direct addressing example | “LDA 8” to mean to store the value which is in address 8 |
| indirect addressing | to preform the opcode on the address which is pointed to by the location stated in the operand |
| indirect addressing reason | allows for the entire memory to be useful beyond the range of the operand |
| indirect addressing example | “SUB 5” to mean to go to address 5 and subtract the value that is in the location stored in address 5 |
| indexed addressing | to preform the opcode on the location of the operand+index |
| indexed addressing reason | allows for repeated instructions to be handled efficiently if data is stored contiguously |
| index addressing hawk tuah | allows for the instructions to repeat and spit on that thang crazy style |
| indexed addressing example | “ADD 7” with an index register of 2 to mean to add the value stored in the 9th (7+2) address |
| index register properties | set to 0 to mean the operand’s location (direct addressing) each kth increment then implies the k-1th item in the array |
| low-level languages | when there is a 1:1 constant occurance between the code entered and its binary sequence |
| high-level languages | when the parts of the code could result in different sequences in binary depending on context |
| machine code | |
| programming paradigms | the different ways that the computer can be manipulated to form an output (the different ways we can do things) |
| procedual languages | high level languages which do pre-defined "tasks" in a set order in order to produce an output |
| sequence | when code is executed in a linear order |