home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <string.h>
-
- main(int argc, char *argv[])
- {
- int stat,x,ptr;
- char buff[256];
-
- puts("MASM.EXE by James Dunn; calls TASM in MASM mode: /MX/ZI/W2/JQUIRKS/JMASM51");
-
- ptr=strlen(argv[0])-8;
- argv[0][ptr]='\0';
-
- strcpy(buff,argv[0]);
- strcat(buff,"tasm/mx/zi/w2/jQUIRKS/jMASM51 ");
-
- for(x=1;x<argc;x++)
- {
- strcat(buff,argv[x]);
- strcat(buff," ");
- }
-
- stat=system(buff);
- if(stat)
- printf("\n\n*** Error executing MASM/TASM program ***");
-
- }