#include <stdio.h>
#include <setjmp.h>
#include <string.h>
-#if !defined(_MSC_VER)
-#include <alloc.h>
-#endif
#include "asm.h"
/*)Module asexpr.c
*
* asexpr.c contains the following functions:
* VOID abscheck()
- * addr_t absexpr()
+ * Addr_T absexpr()
* VOID clrexpr()
* int digit()
* VOID expr()
unget(c);
}
-/*)Function addr_t absexpr()
+/*)Function Addr_T absexpr()
*
* The function absexpr() evaluates an expression, verifies it
* is absolute (i.e. not position dependent or relocatable), and
* a 'r' error is reported.
*/
-addr_t
+Addr_T
absexpr()
{
struct expr e;
if (c == '-') {
expr(esp, 100);
abscheck(esp);
- esp->e_addr = -esp->e_addr;
+ esp->e_addr = 0-esp->e_addr;
return;
}
if (c == '~') {