affiliate marketing
Showing posts with label direct linking loader program. Show all posts
Showing posts with label direct linking loader program. Show all posts

Saturday, 17 December 2011

TEXT EDITOR


PASS2 OF DIRECTLINKING LOADER


PROGRAM:
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>

struct exttable
{
  char csect[20],sname[20];
  int padd,plen;
}estab[20];

struct objectcode
{
  unsigned char code[15];
  int add;
}obcode[500];

void main()

PASS1 OF DIRECT LINKING LOADER


PROGRAM:
#include<stdio.h>
#include<conio.h>
#include<string.h>

struct estab
{
char csname[10];
char extsym[10];
int address;
int length;
}es[20];
void main()
{
  char input[10],name[10],symbol[10],ch;
  int count=0,progaddr,csaddr,add,len;
  FILE *fp1,*fp2;
  clrscr();
  fp1=fopen("LINP.DAT","r");
  fp2=fopen("LOADMAP.DAT","w");
  printf("\n\nEnter the address where the program has loaded: ");
  scanf("%x",&progaddr);
  csaddr=progaddr;
  fprintf(fp2,"CS_NAME\tEXT_SYM_NAME\tADDRESS\tLENGTH\n");
  fprintf(fp2,"------------------------------\n");
  fscanf(fp1,"%s",input);
  while(strcmp(input,"END")!=0)