Com 212 intro to system programming book Theory


Partly assembling it and storing it in memory location 67. ii)



Download 0.65 Mb.
View original pdf
Page10/72
Date13.05.2021
Size0.65 Mb.
#56617
1   ...   6   7   8   9   10   11   12   13   ...   72
com-212-introduction-to-system-programming-theory
9833 SS1 FISHERY LESSON NOTE

Partly assembling it and storing it in memory location 67. ii)
Copying the pointer 36 from the symbol table to the partly assembled instruction in location 67. The instruction has an empty field (where the value of AB should have
been), where the pointer is now stored. There maybe cases where this field Figure 2.2 A Pass Assembler

Page | 14
TWO PASS ASSEMBLER

A two-pass assembler is easier to understand Such an assembler performs two passes over the source file. In the first pass it reads the entire source file, looking only for label definitions. All labels are collected, assigned values, and placed in the symbol table in this pass. No instructions are assembled and, at the end of the pass, the symbol table should contain all the labels defined in the program. In the second pass, the instructions are again read and are assembled, using the symbol table.

Download 0.65 Mb.

Share with your friends:
1   ...   6   7   8   9   10   11   12   13   ...   72




The database is protected by copyright ©ininet.org 2024
send message

    Main page