Skip to content

Commit 8826508

Browse files
committed
Commit for DASM version 2.20.11 - build 2014.03.04.
Sources were downloaded from the dasm-dillon release on SourceForge.
1 parent ba9584b commit 8826508

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+14772
-1569
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.o
2+
bin
3+
dasm
4+
ftohex

AUTHORS

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
$Id: AUTHORS 110 2008-04-08 02:43:12Z phf $
2+
3+
===========
4+
The Authors
5+
===========
6+
7+
The following people contributed code to this distribution of DASM
8+
over the years (alphabetical by first name):
9+
10+
* Andrew Davie <atari2600 at taswegian dot com>
11+
- maintainer (2003-2008)
12+
13+
* John Saeger <john at whimsey dot com>
14+
- support for illegal 6502 opcodes (2003)
15+
16+
* Matthew Dillon <dillon at backplane dot com>
17+
- original author (1988-2002)
18+
19+
* Olaf "Rhialto" Seibert <rhialto at falu dot nl>
20+
- lots of extensions (1995)
21+
22+
* Peter H. Froehlich <phf at acm dot org>
23+
- current maintainer (2008-)
24+
25+
* Thomas Mathys <mathys66 at bluewin dot ch>
26+
- support for Fairchild F8 processor (2004)
27+
28+
Authors hold the copyright for their individual contributions to DASM
29+
and have agreed to distribute DASM and their individual contributions
30+
under the GNU General Public License (see file COPYING).
31+
32+
If you have contributed code to this distribution of DASM but are not
33+
listed above, please contact us! Visit http://dasm-dillon.sf.net/ for
34+
more information.
35+

src/copyright.txt renamed to COPYING

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
GNU GENERAL PUBLIC LICENSE
2-
Version 2, June 1991
1+
GNU GENERAL PUBLIC LICENSE
2+
Version 2, June 1991
33

4-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5-
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
66
Everyone is permitted to copy and distribute verbatim copies
77
of this license document, but changing it is not allowed.
88

9-
Preamble
9+
Preamble
1010

1111
The licenses for most software are designed to take away your
1212
freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
1515
General Public License applies to most of the Free Software
1616
Foundation's software and to any other program whose authors commit to
1717
using it. (Some other Free Software Foundation software is covered by
18-
the GNU Library General Public License instead.) You can apply it to
18+
the GNU Lesser General Public License instead.) You can apply it to
1919
your programs, too.
2020

2121
When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
5555

5656
The precise terms and conditions for copying, distribution and
5757
modification follow.
58-
59-
GNU GENERAL PUBLIC LICENSE
58+
59+
GNU GENERAL PUBLIC LICENSE
6060
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6161

6262
0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
110110
License. (Exception: if the Program itself is interactive but
111111
does not normally print such an announcement, your work based on
112112
the Program is not required to print an announcement.)
113-
113+
114114
These requirements apply to the modified work as a whole. If
115115
identifiable sections of that work are not derived from the Program,
116116
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
168168
access to copy the source code from the same place counts as
169169
distribution of the source code, even though third parties are not
170170
compelled to copy the source along with the object code.
171-
171+
172172
4. You may not copy, modify, sublicense, or distribute the Program
173173
except as expressly provided under this License. Any attempt
174174
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
225225

226226
This section is intended to make thoroughly clear what is believed to
227227
be a consequence of the rest of this License.
228-
228+
229229
8. If the distribution and/or use of the Program is restricted in
230230
certain countries either by patents or by copyrighted interfaces, the
231231
original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
255255
of preserving the free status of all derivatives of our free software and
256256
of promoting the sharing and reuse of software generally.
257257

258-
NO WARRANTY
258+
NO WARRANTY
259259

260260
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261261
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,11 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277277
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278278
POSSIBILITY OF SUCH DAMAGES.
279279

280-
END OF TERMS AND CONDITIONS
281-
280+
END OF TERMS AND CONDITIONS
282281

283-
284-
How to Apply These Terms to Your New Programs
282+
How to Apply These Terms to Your New Programs
285283

286284
If you develop a new program, and you want it to be of the greatest
287285
possible use to the public, the best way to achieve this is to make it
@@ -305,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
305303
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
306304
GNU General Public License for more details.
307305

308-
You should have received a copy of the GNU General Public License
309-
along with this program; if not, write to the Free Software
310-
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
311-
306+
You should have received a copy of the GNU General Public License along
307+
with this program; if not, write to the Free Software Foundation, Inc.,
308+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
312309

313310
Also add information on how to contact you by electronic and paper mail.
314311

@@ -338,5 +335,5 @@ necessary. Here is a sample; alter the names:
338335
This General Public License does not permit incorporating your program into
339336
proprietary programs. If your program is a subroutine library, you may
340337
consider it more useful to permit linking proprietary applications with the
341-
library. If this is what you want to do, use the GNU Library General
342-
Public License instead of this License.
338+
library. If this is what you want to do, use the GNU Lesser General
339+
Public License instead of this License.

CREDITS

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
$Id: CREDITS 327 2014-02-09 13:06:55Z adavie $
2+
3+
===========
4+
The Credits
5+
===========
6+
7+
The following people hacked DASM, but their modifications have not
8+
been integrated yet (alphabetical by first name):
9+
10+
* Lasse Oeoerni <loorni at gmail dot com>
11+
- fixed various problems (1999-2004)
12+
13+
The following people helped by building binaries/executables for
14+
various platforms (alphabetical by first name):
15+
16+
* James Wilkinson <james at slor dot net>
17+
- BeOS and Linux (2005)
18+
19+
* Jason Rein <jjrein at earthlink dot net>
20+
- Mac OS 9 (2003)
21+
22+
* Jay Carlson <nop at nop dot com>
23+
- MS-DOS and Unix (1993)
24+
25+
* Jeremy Penner <jeremy at sporktania dot com>
26+
- Mac OS X (2003)
27+
28+
* Peter Gordon <pete at petergordon dot org dot uk>
29+
- Amiga OS3 and OS4 (2003)
30+
31+
* Rob Kudla <webmaster at kudla dot org>
32+
- Linux including RPMs (2003)
33+
34+
The following people allowed us to distribute their example code
35+
with DASM (alphabetical by first name):
36+
37+
* Rob Kudla <webmaster at kudla dot org>
38+
- Boing! demo for Atari 2600 (2008)
39+
40+
Note that inclusion of example code in the DASM distribution does
41+
not put that code under the GNU General Public License by default.
42+
If you want to modify and redistribute example code from people
43+
listed above, read the license on their code carefully, or contact
44+
them directly for permission if in doubt.
45+
46+
If you helped with DASM but are not listed here, please contact us!
47+
Visit http://dasm-dillon.sf.net/ for more information.
48+

ChangeLog

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
$Id: ChangeLog 114 2008-04-08 02:50:35Z phf $
2+
3+
Note that we document changes to the source files and
4+
closely related files (Makefile, test cases) only, this
5+
is *not* a complete record of every single change ever
6+
made. Check the Subversion logs for that. :-)
7+
8+
2008-04-07 Peter H. Froehlich <phf at acm dot org>
9+
10+
* Makefile (dist:): added README.ANDREW and CREDITS;
11+
corrected test/atari2600/ pattern
12+
13+
* test/atari2600/*: removed one Atari 2600 test case
14+
due to concerns about the original Atari copyright
15+
on the code; adjusted Makefile accordingly
16+
17+
* src/main.c, doc/dasm.txt: synchronized usage information
18+
between dasm itself and the documentation for dasm
19+
20+
* src/main.c: completely removed deprecated -t option
21+
22+
* src/ftohex.c: removed _fmode stuff that was necessary
23+
for ancient C compilers for DOS
24+
25+
2008-04-06 Peter H. Froehlich <phf at acm dot org>
26+
27+
* Makefile: removed Apple specific warning option, added
28+
-p to mkdir in build target (thanks to Andrew Davie);
29+
added a test target to run all tests from trunk; added
30+
"recursive clean" for test directory to clean target;
31+
fixed dist target to allow for correctly structured
32+
source and binary releases; default target now builds
33+
DASM; install target added but just prints a warning
34+
35+
* test/*: imported Matt Dillon's original test cases from
36+
his 2.16 release
37+
38+
* test/atari2600/*: added two "real" Atari 2600 programs as
39+
test cases and created a trivial testing framework
40+
41+
* test/Makefile, test/run_tests.sh: created a slightly more
42+
advanced testing framework, still far from decent though
43+
44+
* ChangeLog: finally wrote this file for everything that
45+
happened since I took over :-)
46+
47+
2008-04-05 Peter H. Froehlich <phf at acm dot org>
48+
49+
* src/main.c: made command line behavior more Unix-like by
50+
removing "spurious" output (version, completed); added a
51+
new -E option to control format of error messages; also
52+
refactored asmerr() to make it somewhat cleaner
53+
54+
* src/asm.h src/global.c src/main.c: turned -T sortmode stuff
55+
into a proper enum type and refactored main.c code to use
56+
enum constants for range checking
57+
58+
* Makefile: added to produce beta releases as well as final
59+
releases; beta releases work, final releases don't yet
60+
61+
* src/*: introduced the new "standard header" in all our
62+
source files
63+
64+
2008-04-04 Peter H. Froehlich <phf at acm dot org>
65+
66+
* src/asm.h: completely removed the old "bool" defines,
67+
were not in use anymore anyway (see 2008-04-01)
68+
69+
* src/main.c: replaced calls of non-standard atoi() with
70+
standard strtol(), no error checking yet; added range
71+
checking for -T option
72+
73+
* src/asm.h src/globals.c src/main.c: introduced a "regular"
74+
configuration variable F_sortmode for the -T option; the
75+
bTableSort hack is however not gone yet
76+
77+
* src/Makefile: switched on many more warning options,
78+
including -Wextra temporarily
79+
80+
* src/*: fixed more warnings, many of which came from
81+
what -Wextra said about field initializations in the
82+
opcode tables
83+
84+
* src/asm.h src/mne*.c: added MNEMONIC_NULL macro to
85+
mark the end of MNEMONIC tables correctly and without
86+
duplicating the code in every file
87+
88+
2008-04-03 Peter H. Froehlich <phf at acm dot org>
89+
90+
* src/Makefile: added target to make an alpha release,
91+
reorganized structure to be more obvious
92+
93+
2008-04-02 Peter H. Froehlich <phf at acm dot org>
94+
95+
* src/main.c (CompareAlpha, CompareAddress): rewrote
96+
CompareAlpha() to call strcasecmp() instead of
97+
allocating memory for both strings, converting
98+
them to lower case inline with one loop for each
99+
string, calling strcmp(), and then freeing memory
100+
again; also corrected the casts from const void*
101+
to const SYMBOL** following the example for qsort(3)
102+
from the Linux man page
103+
104+
* src/Makefile: switched on many more warning options
105+
106+
* src/*: fixed lots of warnings: shadowing, some
107+
more static, lots and lots of const (and casts
108+
losing const when they shouldn't)
109+
110+
2008-04-01 Peter H. Froehlich <phf at acm dot org>
111+
112+
* src/mnef8.c: replaced uses of non-standard stricmp() with
113+
standard strcasecmp()
114+
115+
* src/asm.h (SYMBOL): made "value" field signed again, fixing
116+
the long-standing "-1 bug" (partially for sure)
117+
118+
* src/asm.h: switched to stdbool.h from custom define for bool
119+
120+
* test/negative.h: added a new test case for negative literals
121+
122+
* src/Makefile: use gcc to build on Unix systems, added mnef8.c
123+
to dependencies, added a "clean" target, switched to C99 and
124+
enabled many warning options
125+
126+
* src/*: fixed lots of warnings in all source files, mostly
127+
concerned with initializion of MNEMONIC tables and various
128+
printf format codes; also added "static" to many functions
129+
that are used only within one file and removed several of
130+
the prototypes that were unnecessary because of this
131+
132+
Note that there is a long and involved history of changes from
133+
before 2.20.11 that was not reconstructed here. It would be an
134+
interesting (if Quixotic) project to actually do the necessary
135+
research, but it's not on my agenda for the near future.
136+

0 commit comments

Comments
 (0)