SLR 7/ Types of Programming Language Flashcards
Define Pre-defined functions
Functions pre-written within a programming language.
Define Local variables
A variable that can only be accessed within the specific procedure or function it was declared in.
Define Global variables
A variable that can be accessed throughout the entire program and used by all modules.
Define Parameter passing
Allows variable values to be passed into procedures and functions for use in those blocks of code.
Define Modularity
The concept of separating the functionality of a program into individual, interchangeable blocks, each designed to carry out a single task. These all combine to make a complete program and make the program more readable.
Define Procedures
Programs follow procedure calls systematically. The program does exactly what it is told to do in the order set by the programmer. Modularity is achieved by splitting the program into procedures.
Define Library
A collection of pre-built functions and procedures
Define ADD
Add: Add the value stored to the value currently in the accumulator
Define SUB
Subtract: Subtract the value stored to the value currently in the accumulator
Define STA
Store: Store the contents of the accumulator
Define LDA
Load: Load the value and enter it in the accumulator
Define BRA
Branch: Set the program counter to the given address (value xx). That is, value xx will be the next instruction executed.
Define BRZ
Branch If Zero: If the accumulator (calculator) contains the value 000, set the program counter to the value xx. Otherwise, do nothing
Define BRP
Branch If Positive: If the accumulator (calculator) is 0 or positive, set the program counter to the value xx. Otherwise, do nothing
Define INP
Input: fetch the value from the user, and put it in the accumulator