Rate the Blog ?

Wednesday, March 11, 2009

Algorithm of first pass of Assembler

Algorithm of First pass of Assembler
-----------------------------------------------------------------------------------------

Step 1 : Set location counter to beginning

Step 2: Scan next line of code, if label present then go to step 3 , else go to step 5.

Step 3: Store symbol in address symbol table together with value of LC

Step 4: Increment Location Counter and go to Step 2.

Step 5: Check whether Origin or not, if origin then go to Step 6,else go to step 7.

Step 6:Set LC and go to Step 2

Step 7: Check whether end occur ,if yes then go to step 8,else go to step 4.

Step 8: Go to Second Pass.

-------------------------------------------------------------------------------------------------

No comments:

Post a Comment