4,887 views
5 5 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
6 6 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
Position:
Show:

Related questions

8 8 votes
1 answers 1 answer
2.9k
2.9k views
gatecse asked May 3, 2021
2,891 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 addres...
22 22 votes
2 answers 2 answers
5.2k
5.2k views
Kathleen asked Oct 5, 2014
5,159 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...
16 16 votes
2 2 answers
4.6k
4.6k views
Kathleen asked Oct 5, 2014
4,558 views
State whether the following statements are True or False with reasons for your answer:Coroutine is just another name for a subroutine.
36 36 votes
4 answers 4 answers
12.3k
12.3k views
Kathleen asked Oct 5, 2014
12,322 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.