2,326 views
3 votes
3 votes
State whether the following statements are True or False with reasons for your answer:

A two pass assembler uses its machine opcode table in the first pass of assembly.

1 Answer

Best answer
3 votes
3 votes
In the first pass of the assembler, $\textsf{Machine Opcode Table}\; (\textsf{MOT})$ is used to get the opcode size of the mnemonics which is needed to increment the $\textsf{LOCCTR}$ which is needed to determine the address of the labels. The labels and their corresponding addresses go to the $\textsf{Symbol Table}$ which is thus populated during the first phase and used in the second phase whereas $\textsf{MOT}$ is not modified but just used in the two phases – in the second phase to convert menmonic to opcode.
selected by

Related questions

5 votes
5 votes
1 answer
1
gatecse asked May 3, 2021
1,278 views
State whether the following statements are True or False with reasons for your answerA symbol declared as ‘external’ in an assembly language program is assigned an ad...
19 votes
19 votes
2 answers
2
Kathleen asked Oct 5, 2014
2,895 views
State whether the following statements are True or False with reasons for your answerA subroutine cannot always be used to replace a macro in an assembly language program...
12 votes
12 votes
2 answers
3
Kathleen asked Oct 5, 2014
2,612 views
State whether the following statements are True or False with reasons for your answer:Coroutine is just another name for a subroutine.
22 votes
22 votes
3 answers
4
Kathleen asked Oct 5, 2014
7,244 views
Let $p$ and $q$ be propositions. Using only the Truth Table, decide whether $p \Longleftrightarrow q$ does not imply $p \to \lnot q$is True or False.