Types of Programming Language (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
15 cards from this deck
ShowHide
Practise the cards
15 cards from this deck
What type of language is Assembly?
What type of language is Assembly?
Low-level programming language
Assembly Language and computer architecture
Assembly Language and computer architecture
Specific to computer's architecture
What is Little Man Computer (LMC)?
What is Little Man Computer (LMC)?
Simplified CPU model to learn assembly concepts
What does the LMC Accumulator do?
What does the LMC Accumulator do?
Single register for arithmetic calculations
What does LMC Program Counter track?
What does LMC Program Counter track?
Address of next instruction to execute
What does an LMC Mailbox store?
What does an LMC Mailbox store?
3-digit instruction or data value
What does ADD (1XX) do?
What does ADD (1XX) do?
Adds value at address XX to accumulator
What does SUB (2XX) do?
What does SUB (2XX) do?
Subtracts value at address XX from accumulator
What does STA (3XX) do?
What does STA (3XX) do?
Stores accumulator value into address XX
What does LDA (5XX) do?
What does LDA (5XX) do?
Loads value at address XX into accumulator
When does BRZ (7XX) branch?
When does BRZ (7XX) branch?
Accumulator is zero
When does BRP (8XX) branch?
When does BRP (8XX) branch?
Accumulator is positive
What does INP (901) do?
What does INP (901) do?
Inputs value into accumulator
What does OUT (902) do?
What does OUT (902) do?
Outputs value in accumulator
What does HLT (000) do?
What does HLT (000) do?
Halts the program
