Question: a. A 2-pass assembler can handle future symbols and an instruction can therefore use a future symbol as an operand. This is not always true

a. A 2-pass assembler can handle future symbols and an instruction can therefore use a future symbol as an operand. This is not always true for directives. The EQU directive, for example, cannot use a future symbol. The directive 'A EQU B+1' is easy to execute if B is previously defined, but impossible if B is a future symbol. What's the reason for this?
b. Suggest a way for the assembler to eliminate this limitation such that any source line could use future symbols.

Step by Step Solution

3.47 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The reason is that instructions are assembled in pass 2 where all the symbols are already in the s... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

896-C-S-S-A-D (2698).docx

120 KBs Word File

Students Have Also Explored These Related Systems Analysis And Design Questions!