aboutsummaryrefslogtreecommitdiffstats
path: root/lang/intel2gas/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-06-11 08:13:26 +0800
committersteve <steve@FreeBSD.org>1999-06-11 08:13:26 +0800
commit4d99b7f3fa0dd7445c34f7a86d7ca94ff2398bdc (patch)
treed6347e85de53a1c3ac487eb2b04258ffdf3680a9 /lang/intel2gas/files
parent5e78e55d4330f3a2b178e98105f777578251fc33 (diff)
downloadfreebsd-ports-gnome-4d99b7f3fa0dd7445c34f7a86d7ca94ff2398bdc.tar.gz
freebsd-ports-gnome-4d99b7f3fa0dd7445c34f7a86d7ca94ff2398bdc.tar.zst
freebsd-ports-gnome-4d99b7f3fa0dd7445c34f7a86d7ca94ff2398bdc.zip
Initial import of intel2gas version 1.2.
Converts Intel assembly language (nasm) to AT&T syntax (gas). PR: 11672 Submitted by: G. Adam Stanislav <adam@whizkidtech.net>
Diffstat (limited to 'lang/intel2gas/files')
-rw-r--r--lang/intel2gas/files/patch-aa39
-rw-r--r--lang/intel2gas/files/patch-ab41
-rw-r--r--lang/intel2gas/files/patch-ac78
-rw-r--r--lang/intel2gas/files/patch-ad11
4 files changed, 169 insertions, 0 deletions
diff --git a/lang/intel2gas/files/patch-aa b/lang/intel2gas/files/patch-aa
new file mode 100644
index 000000000000..83aac50c66f3
--- /dev/null
+++ b/lang/intel2gas/files/patch-aa
@@ -0,0 +1,39 @@
+--- Makefile.in.orig Tue May 4 11:56:19 1999
++++ Makefile.in Wed May 12 10:03:30 1999
+@@ -9,11 +9,6 @@
+ CXXFLAGS = @CXXFLAGS@
+ OFILES = strhandle.o loaddata.o intel2gas.o
+ HFILES = strhandle.h loaddata.h intel2gas.h
+-DATADIRS = i2g g2i
+-
+-prefix = @prefix@
+-exec_prefix = @exec_prefix@
+-data_prefix = $(prefix)/share/intel2gas
+
+ all: warning intel2gas
+
+@@ -30,24 +25,3 @@
+ .cc.o:
+ $(CXX) -c $(CXXFLAGS) $<
+
+-clean:
+- rm -f *.o *~ core
+-
+-distclean: clean
+- rm -f intel2gas config.status config.log config.cache Makefile i2gconf.h
+-
+-
+-install:
+- install -m 755 -d $(data_prefix)
+- for datadir in $(DATADIRS); do \
+- install -m 755 -d $(data_prefix)/$$datadir; \
+- install -m 0644 $$datadir/* $(data_prefix)/$$datadir; \
+- done
+- install -m 755 intel2gas $(exec_prefix)/bin
+-
+-uninstall:
+- for datadir in $(DATADIRS); do \
+- rm -rf $(data_prefix)/$$datadir; \
+- done
+- rm -f $(exec_prefix)/bin/intel2gas
+- rmdir $(data_prefix)
diff --git a/lang/intel2gas/files/patch-ab b/lang/intel2gas/files/patch-ab
new file mode 100644
index 000000000000..a27ef6b849e3
--- /dev/null
+++ b/lang/intel2gas/files/patch-ab
@@ -0,0 +1,41 @@
+--- README.html.orig Wed May 5 11:23:12 1999
++++ README.html Wed May 12 11:03:47 1999
+@@ -1,13 +1,12 @@
++<html><head><title>
+ intel2gas 1.2 (c)1999 Mikko Tiihonen (mikko.tiihonen@hut.fi)
+-
++</title></head><body bgcolor="#FFFFFF"><pre>
+ This program converts assembler source from intel (NASM), to AT&T (gas)
+ syntax. It is FREE SOFTWARE under the terms of the GNU General Public
+ License (GPL), enclosed in the file 'COPYING'.
+-----------------------------------------------------------------------------
+-
++</pre><h2>
+ 1. What's this?
+----------------
+-
++</h2><pre>
+ Intel2gas is a small text parser that can convert assembler source
+ written in intel syntax to at&t syntax. And nowadays more often also
+ the other way.
+@@ -15,15 +14,14 @@
+ The program does minimal error checking and does not understand the
+ text it's converting. It's just tries to find matches from its syntax
+ database.
+-
+-
++</pre><h2>
+ 2. Bug reports:
+----------------
++</h2><pre>
+ You are encouraged to send any bug reports, suggestions and comments to
+ the author.
+-
+-
++</pre><h2>
+ 3. Thanks:
+-----------
++</h2><pre>
+ brn for creating a need for this tool
+ G. Adam Stanislav for helpping with the commandline
++</pre></body></html>
diff --git a/lang/intel2gas/files/patch-ac b/lang/intel2gas/files/patch-ac
new file mode 100644
index 000000000000..9bbe674a1187
--- /dev/null
+++ b/lang/intel2gas/files/patch-ac
@@ -0,0 +1,78 @@
+--- DATAFILES.html.orig Wed May 5 11:24:59 1999
++++ DATAFILES.html Wed May 12 11:18:51 1999
+@@ -1,9 +1,10 @@
++<html><head><title>Intel2gas data files</title></head><body bgcolor="#FFFFFF"><pre>
+ This document tries to explain how the syntax matching works. You propably
+ don't want to know, but it's became so complex that I keep forgetting how
+ it works.
+-
++</pre><h1>
+ 1. How it Works(tm)
+---------------------
++</h1><pre>
+ Before parsing the program reads all .syntax files for parsing
+ information, and .list files for list of registers etc. There
+ is no limit for number of files, or syntaxes in them.
+@@ -16,7 +17,7 @@
+ Parsing rules:
+ - Normal characters are matched exactly.
+ - Space in parse description matches any amount of space in input line.
+-- `text´ inside '<>' is considered a special tag and parsed accordingly,
++- `text´ inside '&lt;&gt;' is considered a special tag and parsed accordingly,
+ after successfull match it's value is stored into a variable of the
+ same name (`text´).
+
+@@ -25,12 +26,10 @@
+
+ Output rules:
+ - Normal characters (including space) are copied to output.
+-- `text´ inside '<>' is replaced with value of a variable called `text´.
+-
+-
+-
++- `text´ inside '&lt;&gt;' is replaced with value of a variable called `text´.
++</pre><h1>
+ 2. Files
+---------
++</h1><pre>
+ .syntax file syntax:
+ -
+ parse rule
+@@ -44,12 +43,10 @@
+ val1
+ val2
+ ...
+-
+-
+-
++</pre><h1>
+ 4. Tags
+--------
+-Format of a tag is following: <tagnameN:hh>c, where
++</h1><pre>
++Format of a tag is following: &lt;tagnameN:hh&gt;c, where
+ - tagname is the name of the tag and the variable where the result is stored.
+ - N an optional number (0-9) to store the result in different variable.
+ - hh an optional hex bitmask (00-ff) for list matches, defaults to ff.
+@@ -66,12 +63,11 @@
+ * the output of amatching rule is stored in the variable.
+
+ Special tags:
+-<nl> output a new line character
+-<cm> matches a '#'
+-
+-
++&lt;nl&gt; output a new line character
++&lt;cm&gt; matches a '#'
++</pre><h1>
+ 5. Current set of files
+------------------------
++</h1><pre>
+ Syntax files:
+ main.syntax the basic syntax file
+ num.syntax converts hex,dec,oct,bin numbers
+@@ -85,3 +81,4 @@
+ size.nn.list byte,dword... memory sizes, sets 'm' to match the proper b/w/l
+ data.nn.list dd, db... sizes used in variable creation
+ discard.nn.list short... discarded
++</pre></body></html>
diff --git a/lang/intel2gas/files/patch-ad b/lang/intel2gas/files/patch-ad
new file mode 100644
index 000000000000..6d4f3bbf8725
--- /dev/null
+++ b/lang/intel2gas/files/patch-ad
@@ -0,0 +1,11 @@
+--- intel2gas.cc.orig Wed May 5 10:53:34 1999
++++ intel2gas.cc Wed May 12 12:26:47 1999
+@@ -428,7 +428,7 @@
+ static void printHelp(char const *infostr)
+ {
+ fprintf(stderr,"%s\n"\
+- "usage: intel2gas [options] [infile] [-o outfile]\n"\
++ "usage: intel2gas [options] [-o outfile] [infile]\n"\
+ "where options include:\n"\
+ "\t-h\t\tthis help\n"\
+ "\t-i\t\tconvert from intel to at&t format (default)\n"\