changeset 4:34568fab6058

Fixed package to include all required files; also added copyright preamble to all source files
author lost
date Sat, 04 Oct 2008 03:14:20 +0000
parents 46e532283947
children 287a6905a63c
files TODO configure.ac src/Makefile.am src/index.c src/insn_gen.c src/insn_misc.c src/instab.c src/instab.h src/list.c src/lwasm.c src/lwasm.h src/macro.c src/main.c src/output.c src/pragma.c src/pseudo.c src/symtab.c
diffstat 17 files changed, 284 insertions(+), 54 deletions(-) [+]
line wrap: on
line diff
--- a/TODO	Fri Oct 03 06:16:20 2008 +0000
+++ b/TODO	Sat Oct 04 03:14:20 2008 +0000
@@ -1,3 +1,3 @@
 * Switch internal version string to use the value from autotools
 
-* Switch to "config.h"
+* add support for an object file format
--- a/configure.ac	Fri Oct 03 06:16:20 2008 +0000
+++ b/configure.ac	Sat Oct 04 03:14:20 2008 +0000
@@ -1,6 +1,7 @@
 AC_INIT([lwasm], [1.0], [lost@l-w.ca])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 AC_PROG_CC
+AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([
 	Makefile
 	src/Makefile
--- a/src/Makefile.am	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/Makefile.am	Sat Oct 04 03:14:20 2008 +0000
@@ -1,2 +1,3 @@
 bin_PROGRAMS = lwasm
 lwasm_SOURCES = index.c instab.c macro.c pragma.c insn_gen.c list.c main.c pseudo.c insn_misc.c lwasm.c output.c symtab.c
+EXTRA_DIST = instab.h lwasm.h
--- a/src/index.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/index.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,24 @@
 /*
- * index.c
- *
- * code for parsing indexed addressing modes
- */
+index.c, Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains  code for parsing indexed addressing modes
+
+*/
 
 #include <ctype.h>
 //#include <errno.h>
--- a/src/insn_gen.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/insn_gen.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,23 @@
 /*
- * insn_gen.c
- *
- * parsing general addressing modes (IMM+DIR+EXT+IND)
- */
+insn_gen.c, Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains code for parsing general addressing modes (IMM+DIR+EXT+IND)
+*/
 
 #include <ctype.h>
 #include "lwasm.h"
--- a/src/insn_misc.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/insn_misc.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,24 @@
 /*
- * insn_misc.c
- *
- * parsing miscelaneous addressing modes
- */
+insn_misc.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains code for parsing miscelaneous addressing modes
+*/
 
 #include <ctype.h>
 #include <stdio.h>
--- a/src/instab.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/instab.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,25 @@
 /*
- * instab.c
- *
- * instruction table for assembling
- */
+instab.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+Contains the instruction table for assembling code
+*/
 
 #include <stdlib.h>
 
--- a/src/instab.h	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/instab.h	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,25 @@
 /*
- * instab.h
- *
- * definitions for the instruction table
- */
+instab.h
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+Contains definitions for the instruction table
+*/
 
 #include "lwasm.h"
 
--- a/src/list.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/list.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,24 @@
 /*
- * list.c
- *
- * code for displaying a program listing in lwasm
- */
+list.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains code for displaying a program listing in lwasm
+*/
 
 //#include <ctype.h>
 #include <errno.h>
--- a/src/lwasm.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/lwasm.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,24 @@
 /*
- * lwasm.c
- *
- * main code for lwasm
- */
+lwasm.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains the main code for lwasm
+*/
 
 #include <ctype.h>
 #include <errno.h>
--- a/src/lwasm.h	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/lwasm.h	Sat Oct 04 03:14:20 2008 +0000
@@ -1,9 +1,24 @@
 /*
- * lwasm.h
- *
- * main defs used by the assembler
- *
- */
+lwasm.h
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains the main defs used by the assembler
+*/
 
 
 #ifndef __lwasm_h_seen__
--- a/src/macro.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/macro.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,24 @@
 /*
- * macro.c
- *
- * stuff associated with macro processing
- */
+macro.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Contains stuff associated with macro processing
+*/
 
 #include <ctype.h>
 #include <stdlib.h>
--- a/src/main.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/main.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,5 +1,22 @@
 /*
 main.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
 
 Implements the program startup code
 
--- a/src/output.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/output.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,25 @@
 /*
- * output.c
- *
- * code for actually outputting the assembled code
- */
+output.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+Contains the code for actually outputting the assembled code
+*/
 
 //#include <ctype.h>
 #include <errno.h>
--- a/src/pragma.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/pragma.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,25 @@
 /*
- * pragma.c
- *
- * stuff associated with lwasm specific strangeness
- */
+pragma.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+This file contains stuff associated with lwasm specific strangeness
+*/
 
 #include <ctype.h>
 #include <stdlib.h>
--- a/src/pseudo.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/pseudo.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,25 @@
 /*
- * pseudo.c
- *
- * pseudo operations
- */
+pseudo.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+This file implements the various pseudo operations.
+*/
 
 #include <ctype.h>
 #include <stdlib.h>
--- a/src/symtab.c	Fri Oct 03 06:16:20 2008 +0000
+++ b/src/symtab.c	Sat Oct 04 03:14:20 2008 +0000
@@ -1,8 +1,24 @@
 /*
- * symtab.c
- *
- * main code for lwasm
- */
+symtab.c
+Copyright © 2008 William Astle
+
+This file is part of LWASM.
+
+LWASM is free software: you can redistribute it and/or modify it under the
+terms of the GNU General Public License as published by the Free Software
+Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along with
+this program. If not, see <http://www.gnu.org/licenses/>.
+
+Implements code for handling the symbol table.
+*/
 
 #include <ctype.h>
 #include <errno.h>