4 کامیت‌ها 54c0d170c6 ... c16acb5461

نویسنده SHA1 پیام تاریخ
  Jason Self c16acb5461 Add an initial README to zilasm 6 سال پیش
  Jason Self 17b564b6d9 Add SPDX-License-Identifier to all files 6 سال پیش
  Jason Self b72426908c Add -Wall -Werror to AM_INIT_AUTOMAKE 6 سال پیش
  Jason Self 9b71505b64 zilasm: Add foreign to AM_INIT_AUTOMAKE 6 سال پیش
10فایلهای تغییر یافته به همراه72 افزوده شده و 2 حذف شده
  1. 1 0
      Makefile.am
  2. 2 1
      configure.ac
  3. 1 0
      zilasm/Makefile.am
  4. 58 0
      zilasm/README.md
  5. 2 1
      zilasm/configure.ac
  6. 2 0
      zilasm/directives.c
  7. 2 0
      zilasm/directives.h
  8. 2 0
      zilasm/header.c
  9. 2 0
      zilasm/header.h
  10. 0 0
      zilasm/labels.c

+ 1 - 0
Makefile.am

@@ -16,5 +16,6 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>
 #
+# SPDX-License-Identifier: AGPL-3.0-or-later
 
 SUBDIRS = zilasm zilc

+ 2 - 1
configure.ac

@@ -16,11 +16,12 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>
 #
+# SPDX-License-Identifier: AGPL-3.0-or-later
 
 AC_PREREQ([2.69])
 AC_INIT([zilutils], [0.1])
 
-AM_INIT_AUTOMAKE(foreign)
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_SUBDIRS([zilasm zilc])

+ 1 - 0
zilasm/Makefile.am

@@ -16,6 +16,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>
 #
+# SPDX-License-Identifier: AGPL-3.0-or-later
 
 bin_PROGRAMS = zilasm
 

+ 58 - 0
zilasm/README.md

@@ -0,0 +1,58 @@
+zilasm is an assembler that targets the Z-Machine. It is the default 
+assembler used by zilc.
+
+General syntax
+==============
+
+Files processed by zilasm consist of instructions and directives, one 
+per line.
+
+Comments begin with ; and continue until end of line. Comments are 
+ignored by the assembler.
+
+Instructions
+------------
+
+Instruction Number Meaning 
+----------- ------ ----------------------------------------------------
+PRINTI      178    Prints a string.
+QUIT        186    Terminates program execution.
+
+Directives
+----------
+
+zilasm uses directives which are instructions to the assembler itself. 
+To distinguish them from instructions, directives begin with a period.
+
+Directive  Meaning
+--------- -------------------------------------------------------------
+.END      Signifies the end of the program and terminates assembly. 
+          End-of-file (EOF) is also treated as the end of the program.
+
+.FUNCT    Defines a function, which is a group of instructions. A 
+          function name, separated from the directive by space or tab, 
+          is also required. The function name may be optionally 
+          followed by a comma and include comma-separated argument 
+          list. A blank line, the .END directive or end-of-file (EOF) 
+          all indicate the end of the function.
+
+Licensing
+=========
+
+This file is part of ZilUtils/ZilAsm
+
+You can redistribute and/or modify this file under the terms of the 
+GNU Affero General Public License as published by the Free Software 
+Foundation, either version 3 of the license, or (at your option) any 
+later version.
+
+This file 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 
+Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public 
+License along with this file. If not, see 
+<http://www.gnu.org/licenses/>
+
+\$-- SPDX-License-Identifier: AGPL-3.0-or-later

+ 2 - 1
zilasm/configure.ac

@@ -16,13 +16,14 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>
 #
+# SPDX-License-Identifier: AGPL-3.0-or-later
 
 AC_PREREQ([2.65])
 AC_INIT([zilasm], [0.1])
 AC_CONFIG_SRCDIR([main.c])
 AC_CONFIG_HEADERS([config.h])
 
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 AC_CONFIG_FILES([Makefile])
 
 # Checks for programs.

+ 2 - 0
zilasm/directives.c

@@ -15,6 +15,8 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
 #include <stdlib.h>   /* bsearch */

+ 2 - 0
zilasm/directives.h

@@ -15,6 +15,8 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
 #ifndef ZILASM_DIRECTIVES

+ 2 - 0
zilasm/header.c

@@ -15,6 +15,8 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
 #include <string.h>  /* bzero */

+ 2 - 0
zilasm/header.h

@@ -15,6 +15,8 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
 #ifndef ZILASM_HEADER

+ 0 - 0
zilasm/labels.c


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است