if (c == '-') {
expr(esp, 100);
abscheck(esp);
- esp->e_addr = -esp->e_addr;
+ esp->e_addr = 0-esp->e_addr;
return;
}
if (c == '~') {
/* Machine dependent functions */
-extern VOID machin();
extern VOID minit();
+extern VOID machine(struct mne *);
/* SD added THIS define to change
strcmpi --> strcmp (strcmpi is NOT ANSI) */
* 29-Oct-97 JLH pass ";!" comments to output file
*/
+#include <stdlib.h>
#include <stdio.h>
#include <setjmp.h>
#include <string.h>
#include "asm.h"
-extern VOID machine(struct mne *);
/*)Module asmain.c
*
* The module asmain.c includes the command argument parser,
* char getnb() aslex.c
* VOID getst() aslex.c
* sym * lookup() assym.c
- * VOID machin() ___mch.c
+ * VOID machine() ___mch.c
* mne * mlookup() assym.c
* int more() aslex.c
* VOID * new() assym.c
/* i51mch.c */
extern int comma();
-extern VOID machin();
extern VOID minit();
extern int reg();
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lkarea.c
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lkdata.c
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lkeval.c
return(v);
}
if (c == '-') {
- return(-expr(100));
+ return(0-expr(100));
}
if (c == '~') {
return(~expr(100));
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*Module lkhead.c
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lkihx.c
fprintf(ofp, "00");
}
}
- fprintf(ofp, "%02X\n", (-chksum) & 0xff);
+ fprintf(ofp, "%02X\n", (0-chksum) & 0xff);
} else {
fprintf(ofp, ":00000001FF\n");
}
*/
chksum = 2 + 4 + (a & 0xff) + ((a >> 8) & 0xff);
- fprintf(ofp, ":02000004%04X%02X\n", a & 0xffff, (-chksum) & 0xff);
+ fprintf(ofp, ":02000004%04X%02X\n", a & 0xffff, (0-chksum) & 0xff);
}
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lklex.c
*
*/
+#include <malloc.h>
#include <stdio.h>
#include <string.h>
-//#if defined(_MSC_VER)
-//#include <malloc.h>
-//#else
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lklibr.c
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include <stdlib.h>
#include "aslink.h"
* - use a_type == 0 as "virgin area" flag: set == 1 if -b
*/
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-//#if defined(_MSC_VER)
-//#include <stdlib.h>
-//#else
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/* yuck - but including unistd.h causes problems on Cygwin by redefining
#include <stdio.h>
#include <setjmp.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
static void DefineGlobal( char *name, Addr_T value, int page );
#include <stdio.h>
#include <string.h>
-//#if !defined(_MSC_VER)
-//#include <alloc.h>
-//#endif
#include "aslink.h"
/*)Module lkrloc.c