Chapter 6 Flashcards

1
Q

What does the Assembler do for each command written in machine language?

A

a. Parse the symbolic command into its underlying fields.
b. For each field, generate the corresponding bits in the machine language.
c. Replace all symbolic references (if any) with numeric addresses of memory locations.
d. Assemble the binary codes into a complete machine instruction.

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

What are the steps the assembler takes to turn code into machine language?

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

What are the three classes that together make and assembler, and what main subtask of the assembler does each class implement?

A
  1. Parser class: Reading and parsing commands.
  2. Code class: Converting mnemonics into code.
  3. Symbol class: Handling symbols.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly