1.2.4 TYPES OF PROGRAMMIG LANGUAGES

9 flashcardsby Sabs2023
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What opcode
tells the CPU the job that needs to be done. eg adding or substracting
2
what operand
specifies the data that needs to be acted on.
3
what is immediate addressing
the value in operand is actually the value to be used
4
what is direct addressing
The value in operand references the address in memory where the value is located.
5
what is indirect addressing
operand gives the address of a register which holds the address of where the value needed is at
6
what is indexed addressing
An index register is used, which stores a certain value. The register which we need to go to is determined by operand + index register.
7
Input two numbers, The smaller number is subtracted from the larger and then the result is output.
inp
sta x
inp
sta y
sub x
brp oki
lda x
sub y
oki out
x dat
y dat
hlt
8
how to call upon a branch?
-------brp name

name out
9
A program that takes two inputs and subtracts the second from the first
inp
sta x
inp
sta y
LDA x
sub y
out
x dat
y dat
Study all 9 cards for free

More Computer science flashcards

Twig Tagss19 cardsComputer science · EnglishGaetanL.1 computer system servicing 14 cardsComputer science · EnglishstudentMeshes and Draw Calls8 cardsComputer science · EnglishNijelousData Communications Midterm Exam278 cardsComputer science · EnglishDiandreiLinux Networking Fundamentals100 cardsComputer science · EnglishAndrewSection 1.8-1.11: Operating Systems75 cardsComputer science · EnglishpzxliWireless Networking and WLAN Standards64 cardsComputer science · EnglishMikeIT104 GMU Midterm practice52 cardsComputer science · EnglishIsaaccsds 344 fial44 cardsComputer science · EnglishSydneyParts and functions of TS37 cardsComputer science · EnglishDekanoabréviations p7431 cardsComputer science · EnglishLoïcMIS EXAM 125 cardsComputer science · EnglishRyan

All Computer science decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 9 cards for free