summaryrefslogtreecommitdiff
path: root/devel/as31
diff options
context:
space:
mode:
authorbjh21 <bjh21@pkgsrc.org>2000-07-08 13:30:04 +0000
committerbjh21 <bjh21@pkgsrc.org>2000-07-08 13:30:04 +0000
commitf347cbb61185e12ec5e5d3778f49b625ec318b7b (patch)
tree15bbca2fe21aaf67e6f0b8674123cc08137071cd /devel/as31
parent160040fd3644b554f6ce043049ab6402a2622a4e (diff)
downloadpkgsrc-f347cbb61185e12ec5e5d3778f49b625ec318b7b.tar.gz
as31-19900126 8031/8051 assembler
Diffstat (limited to 'devel/as31')
-rw-r--r--devel/as31/Makefile23
-rw-r--r--devel/as31/files/md53
-rw-r--r--devel/as31/files/patch-sum3
-rw-r--r--devel/as31/patches/patch-aa62
-rw-r--r--devel/as31/pkg/COMMENT1
-rw-r--r--devel/as31/pkg/DESCR2
-rw-r--r--devel/as31/pkg/PLIST4
7 files changed, 98 insertions, 0 deletions
diff --git a/devel/as31/Makefile b/devel/as31/Makefile
new file mode 100644
index 00000000000..8b9a880dd78
--- /dev/null
+++ b/devel/as31/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/07/08 13:30:04 bjh21 Exp $
+
+DISTNAME= asm.8051
+PKGNAME= as31-19900126
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.uu.net/usenet/comp.sources.misc/volume10/ \
+ ftp://sunsite.org.uk/usenet/comp.sources.misc/volume10/
+EXTRACT_SUFX= .Z
+
+MAINTAINER= bjh21@netbsd.org
+
+EXTRACT_CMD= ${DECOMPRESS_CMD} ${DOWNLOADED_DISTFILE} | \
+ ${SED} '1,/^.! \/bin\/sh/d' | ${SH}
+NO_WRKSUBDIR= yes
+MAKEFILE= makefile
+ALL_TARGET= as31 man
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/as31 ${PREFIX}/bin/as31
+ ${INSTALL_DATA} ${WRKSRC}/as31.man ${PREFIX}/man/man1/as31.1
+ ${INSTALL_DATA} ${WRKSRC}/as31.cat ${PREFIX}/man/cat1/as31.0
+
+.include <../../mk/bsd.pkg.mk>
diff --git a/devel/as31/files/md5 b/devel/as31/files/md5
new file mode 100644
index 00000000000..c4311fd29c8
--- /dev/null
+++ b/devel/as31/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/07/08 13:30:04 bjh21 Exp $
+
+MD5 (asm.8051.Z) = 7aab6e56db580269b7913631db02dbda
diff --git a/devel/as31/files/patch-sum b/devel/as31/files/patch-sum
new file mode 100644
index 00000000000..74c33e8a354
--- /dev/null
+++ b/devel/as31/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/07/08 13:30:04 bjh21 Exp $
+
+MD5 (patch-aa) = 1d4e213e595a3fe99e85dfe29fa7bf99
diff --git a/devel/as31/patches/patch-aa b/devel/as31/patches/patch-aa
new file mode 100644
index 00000000000..7cc05678e62
--- /dev/null
+++ b/devel/as31/patches/patch-aa
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/07/08 13:30:04 bjh21 Exp $
+--- emitter.c Sat Jul 8 11:55:42 2000
++++ emitter.c Sun May 28 14:19:50 2000
+@@ -394,32 +394,47 @@
+ }
+ }
+
++srec_wrbyte(byte)
++{
++ check4 += byte;
++ fprintf(fout, "%02X", byte & 0xff);
++}
++
+ finishline()
+ {
+ int i;
+
+- check4 = index4 + (address4 & 0xff) + ((address4>>8) & 0xff) + 4;
++ check4 = 0;
+
+ switch(format4) {
+ case '2':
+- fprintf(fout, "S1%02X%04X", index4 + 4, address4 & 0xffff);
++ fprintf(fout, "S1");
++ srec_wrbyte(index4 + 2 + 1);
++ srec_wrbyte(address4 >> 8);
++ srec_wrbyte(address4);
+ break;
+ case '3':
+- fprintf(fout, "S2%02X%06X", index4 + 6, address4 & 0xffffff);
+- check4 += ((address4>>16) & 0xff) + 2;
++ fprintf(fout, "S2");
++ srec_wrbyte(index4 + 3 + 1);
++ srec_wrbyte(address4 >> 16);
++ srec_wrbyte(address4 >> 8);
++ srec_wrbyte(address4);
+ break;
+ case '4':
+- fprintf(fout, "S3%02X%08X", index4 + 8, address4);
+- check4 += ((address4>>16) & 0xff) +((address4>>24) & 0xff) + 4;
++ fprintf(fout, "S3");
++ srec_wrbyte(index4 + 4 + 1);
++ srec_wrbyte(address4 >> 24);
++ srec_wrbyte(address4 >> 16);
++ srec_wrbyte(address4 >> 8);
++ srec_wrbyte(address4);
+ break;
+ }
+
+- for(i=0; i<index4; i++) {
+- fprintf(fout, "%02X", buf4[i] & 0xff);
+- check4 += buf4[i];
+- }
++ for(i=0; i<index4; i++)
++ srec_wrbyte(buf4[i]);
+
+- fprintf(fout, "%02X\n", (~check4 & 0xff) );
++ srec_wrbyte(~check4);
++ fprintf(fout, "\n");
+ index4 = 0;
+ }
+
diff --git a/devel/as31/pkg/COMMENT b/devel/as31/pkg/COMMENT
new file mode 100644
index 00000000000..34758e536fd
--- /dev/null
+++ b/devel/as31/pkg/COMMENT
@@ -0,0 +1 @@
+8031/8051 assembler
diff --git a/devel/as31/pkg/DESCR b/devel/as31/pkg/DESCR
new file mode 100644
index 00000000000..73bd009f07f
--- /dev/null
+++ b/devel/as31/pkg/DESCR
@@ -0,0 +1,2 @@
+This is a simple assembler for 8031/8051 type microcontrollers. It works
+from a single input file, and produces output in various hex formats.
diff --git a/devel/as31/pkg/PLIST b/devel/as31/pkg/PLIST
new file mode 100644
index 00000000000..67a230568c0
--- /dev/null
+++ b/devel/as31/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/07/08 13:30:04 bjh21 Exp $
+bin/as31
+man/man1/as31.1
+man/cat1/as31.0