summaryrefslogtreecommitdiff
path: root/as
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1996-05-31 21:33:17 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:30:46 +0200
commite85ee07172eccafd9441362e774f7b184810d008 (patch)
tree5dc12259ab7a61b12d9df284fe58ad5cb312c526 /as
parentdcc973ea3e31710429858c99d4f040334ac67c06 (diff)
downloaddev86-e85ee07172eccafd9441362e774f7b184810d008.tar.gz
Import Dev86-0.0.6.tar.gzv0.0.6
Diffstat (limited to 'as')
-rw-r--r--as/TODO14
-rw-r--r--as/as.c5
-rwxr-xr-xas/chk2
-rw-r--r--as/todo14
4 files changed, 20 insertions, 15 deletions
diff --git a/as/TODO b/as/TODO
index b8166c8..9e100ee 100644
--- a/as/TODO
+++ b/as/TODO
@@ -1 +1,15 @@
6809/const.h is out of date.
+Check why `chk' fails.
+
+Update 6809/const.h.
+
+Produce bsd symbol tables.
+
+Accept gas format.
+
+Decide how to choose between 8-bit and 32-bit branches. 16-bit branches in
+32-bit mode are unusable because top 16 bits of PC are messed up.
+
+Limit insns to specified processor (warn for 386 insns on 8086).
+
+Buffer for printing of listing.
diff --git a/as/as.c b/as/as.c
index 6d50828..68b82cf 100644
--- a/as/as.c
+++ b/as/as.c
@@ -25,6 +25,10 @@ unsigned strlen P((const char *s));
#include <string.h>
#endif
+#ifdef MSDOS
+#include <sys/types.h>
+#include <fcntl.h>
+#else
#ifdef POSIX_HEADERS_MISSING
int close P((int fd));
int creat P((const char *path, int mode));
@@ -34,6 +38,7 @@ int write P((int fd, const void *buf, unsigned nbytes));
#include <fcntl.h>
#include <unistd.h>
#endif
+#endif
PUBLIC char hexdigit[] = "0123456789ABCDEF"; /* XXX - ld uses lower case */
diff --git a/as/chk b/as/chk
index 89c73de..4a2c43b 100755
--- a/as/chk
+++ b/as/chk
@@ -1,7 +1,7 @@
for i in `ls asm/*.asm`
do
j=`basename $i .asm`
- ./as asm/$j.asm -b $j.bin -o $j.obj > /dev/null
+ as86 asm/$j.asm -b $j.bin -o $j.obj > /dev/null
cmp $j.bin bin/$j.bin
cmp $j.obj obj1/$j.obj
rm $j.bin $j.obj
diff --git a/as/todo b/as/todo
deleted file mode 100644
index e85cb6c..0000000
--- a/as/todo
+++ /dev/null
@@ -1,14 +0,0 @@
-Check why `chk' fails.
-
-Update 6809/const.h.
-
-Produce bsd symbol tables.
-
-Accept gas format.
-
-Decide how to choose between 8-bit and 32-bit branches. 16-bit branches in
-32-bit mode are unusable because top 16 bits of PC are messed up.
-
-Limit insns to specified processor (warn for 386 insns on 8086).
-
-Buffer for printing of listing.