What is a computer system?
A machine that takes some kind of input and processes it to produce an output. It does so through a combination of hardware and software.
What is hardware?
The physical components of a computer that can be seen and touched (tangible).
What is a Low level language?
a programming language that is close to the machine’s language. It is designed to be easily understood by the computer’s hardware. This is the lowest level of abstraction.
* Machine Code (binary)
* Assembly (based on mnemonics)
What is software?
the set of instructions that are executed by hardware components.
What is a high level language?
a programming language that is designed to be easy for humans to read and write. They have built-in subprograms and the notion of data types. This is a very high level of abstraction.
* Python
* JavaScript
* C++
What are registers in assembly code?
R0, R1, R2 , small memory cells that can be read from and written to.
How do you assign a value to a register in assembly code?
MOV R1, #8
assigns 8 to the Register.
How do you print out a value in assembly code?
OUT R1, 4
its always 4
How do you get the users input and save it into a register in assembly code?
INP R2, 2
Its always 2
How do you add the result of two registers and store it into another register?
ADD R0, R1, R2
Add R1 and R2 then stores the result in R0