1.1 Machine Code Flashcards
What is Machine code ?
A binary programming language used by a CPU.
All code is eventually converted to machine code.
What is Assembly language ?
A low level programming language.
Each command maps directly to a machine code
instruction.
What does the INP command do?
Input a number to the accumulator
What does the STA x command do?
Store the number in the accumulator in memory location x
What does the ADD x command do?
Adds the number in location x to the accumulator
What does the OUT command do?
Output the number in the accumulator
What does the DAT command do?
Create a memory location with a name
What does the BRA X command do?
Branch – go to memory location X
What does the BRP X command do?
Branch if positive – go to memory location X if the
accumulator is 0 or above.
What does the BRZ X command do?
Branch if zero – go to memory location X if the
accumulator is exactly 0.