summaryrefslogtreecommitdiff
path: root/as
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>2012-08-13 22:10:14 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:48:50 +0200
commit5b6aee2a90b337856aa23fd24a4637f488929ed0 (patch)
tree10d49ef991ff9fa563f71a9fd022614ddeea5fe6 /as
parentdddc44a59e3e393d5440a06e2b0535aeb1304f77 (diff)
downloaddev86-5b6aee2a90b337856aa23fd24a4637f488929ed0.tar.gz
Import Dev86src-0.16.19.tar.gzv0.16.19
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;