Académique Documents
Professionnel Documents
Culture Documents
ASSEMBLER
AIM:
ALGORITHM:
Step 2: Check to see if the opcode field in the input line is “START”.
1. Find if there is any operand field after START; initialize the LOCCTR
to the operand value.
2. Otherwise if there is no value in the operand field LOCCTR is set to
zero.
Step 4: Repeat the following for the other lines in the program until the opcode field
contains end directive.
Step 5: Calculate the length of the program by subtracting the starting address of
program from the final value of the LOCCTR.
Step 6:Close all the opened files and exit.