ASSEMBLY CODE Flashcards

1
Q

How does assembly code relate to machine code?

A
  • there is a 1:1 correspondence between assembly code and machine code
  • one line in assembly code is equivalent to 1 line in machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the assembly code mnemonic for add?

A

ADD

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

What is the assembly code mnemonic for subtract?

A

SUB

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

What is the assembly code mnemonic for store?

A

STA

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

What is the assembly code mnemonic for load?

A

LDA

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

What is the assembly code mnemonic for branch always?

A

BRA

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

What is the assembly code mnemonic for branch if 0?

A

BRZ

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

What is the assembly code mnemonic for branch if positive?

A

BRP

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

What is the assembly code mnemonic for input?

A

INP

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

What is the assembly code mnemonic for output?

A

OUT

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

What is the assembly code mnemonic for end program?

A

HLT

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

What is the assembly code mnemonic for data location?

A

DAT

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

What is a word?

A

a fixed size piece of data

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

What does the width of the address bus determine?

A

the max possible memory capacity of the system
(eg: 8 bit address bus = max no. of memory addresses = 2^8 = 256)

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

What is the width of the data bus defined by?

A

the no. of wires/lines it contains

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

What does it mean if the width of the data bus is the same width as a computer word?

A

data can be transferred to and from memory in a single operation

17
Q

How do the width of the address and data buses relate to assembly code?

A