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.
2
Q
What are the steps the assembler takes to turn code into machine language?
A
3
Q
What are the three classes that together make and assembler, and what main subtask of the assembler does each class implement?
A
- Parser class: Reading and parsing commands.
- Code class: Converting mnemonics into code.
- Symbol class: Handling symbols.