From 4d99b7f3fa0dd7445c34f7a86d7ca94ff2398bdc Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 11 Jun 1999 00:13:26 +0000 Subject: Initial import of intel2gas version 1.2. Converts Intel assembly language (nasm) to AT&T syntax (gas). PR: 11672 Submitted by: G. Adam Stanislav --- lang/intel2gas/files/patch-aa | 39 ++++++++++++++++++++++ lang/intel2gas/files/patch-ab | 41 +++++++++++++++++++++++ lang/intel2gas/files/patch-ac | 78 +++++++++++++++++++++++++++++++++++++++++++ lang/intel2gas/files/patch-ad | 11 ++++++ 4 files changed, 169 insertions(+) create mode 100644 lang/intel2gas/files/patch-aa create mode 100644 lang/intel2gas/files/patch-ab create mode 100644 lang/intel2gas/files/patch-ac create mode 100644 lang/intel2gas/files/patch-ad (limited to 'lang/intel2gas/files') 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 @@ ++ + intel2gas 1.2 (c)1999 Mikko Tiihonen (mikko.tiihonen@hut.fi) +- ++
+ 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'.
+-----------------------------------------------------------------------------
+-
++

+ 1. What's this? +---------------- +- ++

+ 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.
+-
+-
++

+ 2. Bug reports: +---------------- ++

+ You are encouraged to send any bug reports, suggestions and comments to
+ the author.
+-
+-
++

+ 3. Thanks: +----------- ++

+ brn                     for creating a need for this tool
+ G. Adam Stanislav       for helpping with the commandline
++
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 @@ ++Intel2gas data files
+ 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. 
+-
++

+ 1. How it Works(tm) +--------------------- ++

+ 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 '<>' 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 '<>' is replaced with value of a variable called `text´.
++

+ 2. Files +--------- ++

+ .syntax file syntax:
+ -
+ parse rule
+@@ -44,12 +43,10 @@
+ val1
+ val2
+ ...
+-
+-
+-
++

+ 4. Tags +-------- +-Format of a tag is following: c, where ++

++Format of a tag is following: <tagnameN:hh>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:
+-	output a new line character
+-    matches a '#'
+-
+-
++<nl>	output a new line character
++<cm>    matches a '#'
++

+ 5. Current set of files +------------------------ ++

+ 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
++
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"\ -- cgit