Unit 3.1 Machine code and assembly Flashcards

(10 cards)

1
Q

What is a computer system?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is hardware?

A

The physical components of a computer that can be seen and touched (tangible).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Low level language?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is software?

A

the set of instructions that are executed by hardware components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a high level language?

A

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++

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are registers in assembly code?

A

R0, R1, R2 , small memory cells that can be read from and written to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you assign a value to a register in assembly code?

A

MOV R1, #8
assigns 8 to the Register.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you print out a value in assembly code?

A

OUT R1, 4
its always 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you get the users input and save it into a register in assembly code?

A

INP R2, 2
Its always 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you add the result of two registers and store it into another register?

A

ADD R0, R1, R2

Add R1 and R2 then stores the result in R0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly