summaryrefslogtreecommitdiff
path: root/as
diff options
context:
space:
mode:
Diffstat (limited to 'as')
-rw-r--r--as/errors.h5
-rw-r--r--as/mops.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/as/errors.h b/as/errors.h
index ad1b57f..ac26b6d 100644
--- a/as/errors.h
+++ b/as/errors.h
@@ -1,3 +1,6 @@
+
+#ifndef _H_ERRORS
+#define _H_ERRORS
/* Error codes. */
/* Syntax errors. */
@@ -103,3 +106,5 @@ EXTERN char UNSTABLE_LABEL[]; /* "label moved in last pass add -O?" */
/* Warnings. */
EXTERN char CPUCLASH[]; /* "instruction illegal for current cpu" */
EXTERN char SHORTB[]; /* "short branch would do" */
+
+#endif
diff --git a/as/mops.c b/as/mops.c
index d18510d..e6dc9b1 100644
--- a/as/mops.c
+++ b/as/mops.c
@@ -2172,6 +2172,7 @@ PUBLIC void mpushpop()
}
else
{
+ needcpu(1); /* On 8086 PUSH does not allow immediate */
opcode = 0x68;
if (oldopcode == POP_OPCODE)
++opcode;