Chapter 6 - Notes Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Which one is easier to work with? Naked Machine or Virtual Machine?

A

Virtual Machine

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

Which one can you be more productive with? Naked Machine or Virtual Machine?

A

Virtual Machine

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

A low level programming language is also called a?

A

Assembly Language

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

What is a Pseudo-Op?

A

Commands in the program directed to the assembler, not converted to machine instructions.

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

What are .BEGIN, .DATA and .END examples of?

A

Pseudo-Ops

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

What are some advantages of Assembly Language?

A
  1. Easier to debug
  2. Readability
  3. Maintainability
  4. Symbolic labels
  5. Program clarity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How would you express X = Y + 3 in Assembly Language?

A

LOAD Y
ADD THREE
STORE X
END

X: .DATA 0 –X is initially 0
Y: .DATA 5– Y is initially 5

THREE: .DATA 3 – The constant 3

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

True or false? Pseudo-ops are instructions provided by assembler.

A

True

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

True or false? A pass is when the assembler chooses not to do anything with a particular program.

A

False

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

What does it mean to bind (tie together) a symbolic name with a memory address?

A

Associating the name with the address

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

What’t the purpose of the loader?

A

Loads the object file to the memory and then executes it

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

A program written in assembly language is called a:

A

source program.

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

How does an assembler use the symbol table?

A

In the first pass: collects symbolic labels and their position relative to start of the program
In the second pass: substitutes the position for the symbol

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

Which of these is the label in this sample code:

NEXTSTEP: LOAD X – Put X into reg.R

A

NEXTSTEP:

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

Which of these is the mnemonic in this sample code:

NEXTSTEP: LOAD X – Put X into reg.R

A

LOAD

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

Which of these is the address field in this sample code:

NEXTSTEP: LOAD X – Put X into reg.R

A

X

17
Q

Which of these is the comment in this sample code:

NEXTSTEP: LOAD X – Put X into reg.R

A

– Put X into reg.R