Saturday 17 September 2011

ABSOLUTE LOADER


ABSOLUTE LOADER
AIM:
To implement an Absolute loader in C language.
ALGORITHM:
1. Read the Header record
2. Verify program name and length
3. Read first Text record from the input file
4. Process the following steps until an End record is reached
5.1 If object code is in character form, convert it to internal hexadecimal representation
5.2 Move object codes to specified locations in memory
5.3 Write the starting location counter value of a block of object code and the
corresponding internal representation to the output file
5.4 Read next Text record from the input file
5. Go to the address specified in End record
6. Close all the files and exit
INPUT.DAT:
H 1000 232
T 1000 142033 483039 102036
T 2000 298300 230000 282030 302015
E

RESULT:
Thus an Absolute loader is implemented in C language.

0 comments:

Post a Comment