# HG changeset patch # User lost # Date 1223090060 0 # Node ID 34568fab605805ac250a0c24dd21e108349f5c9b # Parent 46e5322839473bcc3508b75efd04722b0a8ba729 Fixed package to include all required files; also added copyright preamble to all source files diff -r 46e532283947 -r 34568fab6058 TODO --- 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 diff -r 46e532283947 -r 34568fab6058 configure.ac --- 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 diff -r 46e532283947 -r 34568fab6058 src/Makefile.am --- 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 diff -r 46e532283947 -r 34568fab6058 src/index.c --- 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 . + +Contains code for parsing indexed addressing modes + +*/ #include //#include diff -r 46e532283947 -r 34568fab6058 src/insn_gen.c --- 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 . + +Contains code for parsing general addressing modes (IMM+DIR+EXT+IND) +*/ #include #include "lwasm.h" diff -r 46e532283947 -r 34568fab6058 src/insn_misc.c --- 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 . + +Contains code for parsing miscelaneous addressing modes +*/ #include #include diff -r 46e532283947 -r 34568fab6058 src/instab.c --- 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 . + + +Contains the instruction table for assembling code +*/ #include diff -r 46e532283947 -r 34568fab6058 src/instab.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 . + + +Contains definitions for the instruction table +*/ #include "lwasm.h" diff -r 46e532283947 -r 34568fab6058 src/list.c --- 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 . + +Contains code for displaying a program listing in lwasm +*/ //#include #include diff -r 46e532283947 -r 34568fab6058 src/lwasm.c --- 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 . + +Contains the main code for lwasm +*/ #include #include diff -r 46e532283947 -r 34568fab6058 src/lwasm.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 . + +Contains the main defs used by the assembler +*/ #ifndef __lwasm_h_seen__ diff -r 46e532283947 -r 34568fab6058 src/macro.c --- 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 . + +Contains stuff associated with macro processing +*/ #include #include diff -r 46e532283947 -r 34568fab6058 src/main.c --- 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 . + Implements the program startup code diff -r 46e532283947 -r 34568fab6058 src/output.c --- 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 . + + +Contains the code for actually outputting the assembled code +*/ //#include #include diff -r 46e532283947 -r 34568fab6058 src/pragma.c --- 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 . + + +This file contains stuff associated with lwasm specific strangeness +*/ #include #include diff -r 46e532283947 -r 34568fab6058 src/pseudo.c --- 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 . + + +This file implements the various pseudo operations. +*/ #include #include diff -r 46e532283947 -r 34568fab6058 src/symtab.c --- 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 . + +Implements code for handling the symbol table. +*/ #include #include