From bd5c00e719f0ec68870ddd4de948bb61f080e3b5 Mon Sep 17 00:00:00 2001 From: Daniel Serpell Date: Tue, 25 Jul 2017 22:51:11 -0400 Subject: [PATCH] Adds linking exception license to runtime parts. --- Makefile | 2 +- README.md | 19 +++++++++++++++++++ src/alloc.asm | 8 ++++++++ src/interpreter.asm | 8 ++++++++ src/menu.asm | 3 +++ src/runtime.asm | 8 ++++++++ src/standalone.asm | 8 ++++++++ 7 files changed, 55 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c694d9f..838069e 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ disk/%: % tr '\n' '\233' < $< > $@ disk/%.txt: %.md - sed -e 's/`\(.*\)`/\1/g' < $< | tr '\n' '\233' > $@ + LC_ALL=C awk 'BEGIN{for(n=0;n<127;n++)chg[sprintf("%c",n)]=128+n} {l=length($$0);for(i=1;i<=l;i++){c=substr($$0,i,1);if(c=="`"){x=1-x;if(x)c="\002";else c="\026";}else if(x)c=chg[c];printf "%c",c;}printf "\233";}' < $< > $@ # Copy ".XEX" as ".COM" disk/fb.com: $(PROG) diff --git a/README.md b/README.md index a1e4e45..f332817 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,25 @@ Sample files In the "tests" folder there are some samples of the language. +License +------- + +FastBasic is free software under the terms of the GNU General Public License, +either version 2 or lather, see the file [LICENSE](LICENSE) for the full text. + +The runtime is also under the following linking exception: + +> In addition to the permissions in the GNU General Public License, the authors +> give you unlimited permission to link the compiled version of this file into +> combinations with other programs, and to distribute those combinations without +> any restriction coming from the use of this file. (The General Public License +> restrictions do apply in other respects; for example, they cover modification +> of the file, and distribution when not linked into a combine executable.) + +This means that you can distribute the compiled result of any program written +by you under any license of your choosing, either proprietary or copyleft. + + Compiling the sources --------------------- diff --git a/src/alloc.asm b/src/alloc.asm index a41a129..ebe5afc 100644 --- a/src/alloc.asm +++ b/src/alloc.asm @@ -15,6 +15,14 @@ ; You should have received a copy of the GNU General Public License along ; with this program. If not, see ; +; In addition to the permissions in the GNU General Public License, the +; authors give you unlimited permission to link the compiled version of +; this file into combinations with other programs, and to distribute those +; combinations without any restriction coming from the use of this file. +; (The General Public License restrictions do apply in other respects; for +; example, they cover modification of the file, and distribution when not +; linked into a combine executable.) + ; Memory functions ; ---------------- diff --git a/src/interpreter.asm b/src/interpreter.asm index 61a0118..c2811b5 100644 --- a/src/interpreter.asm +++ b/src/interpreter.asm @@ -15,6 +15,14 @@ ; You should have received a copy of the GNU General Public License along ; with this program. If not, see ; +; In addition to the permissions in the GNU General Public License, the +; authors give you unlimited permission to link the compiled version of +; this file into combinations with other programs, and to distribute those +; combinations without any restriction coming from the use of this file. +; (The General Public License restrictions do apply in other respects; for +; example, they cover modification of the file, and distribution when not +; linked into a combine executable.) + ; The opcode interpreter ; ---------------------- diff --git a/src/menu.asm b/src/menu.asm index 161b1c4..b97e8e7 100644 --- a/src/menu.asm +++ b/src/menu.asm @@ -206,6 +206,9 @@ COMP_TRAILER: .export COMP_RT_SIZE COMP_RT_SIZE = __RUNTIME_RUN__ + __RUNTIME_SIZE__ - __JUMPTAB_RUN__ + ; This is the runtime startup code, copied into the resulting + ; executables. + ; Note that this code is patched before writing to a file. .segment "RUNTIME" compiled_start: lda #0 diff --git a/src/runtime.asm b/src/runtime.asm index aa2bd58..585487d 100644 --- a/src/runtime.asm +++ b/src/runtime.asm @@ -15,6 +15,14 @@ ; You should have received a copy of the GNU General Public License along ; with this program. If not, see ; +; In addition to the permissions in the GNU General Public License, the +; authors give you unlimited permission to link the compiled version of +; this file into combinations with other programs, and to distribute those +; combinations without any restriction coming from the use of this file. +; (The General Public License restrictions do apply in other respects; for +; example, they cover modification of the file, and distribution when not +; linked into a combine executable.) + ; Common runtime between interpreter and parser ; --------------------------------------------- diff --git a/src/standalone.asm b/src/standalone.asm index 735ad62..db051bf 100644 --- a/src/standalone.asm +++ b/src/standalone.asm @@ -15,6 +15,14 @@ ; You should have received a copy of the GNU General Public License along ; with this program. If not, see ; +; In addition to the permissions in the GNU General Public License, the +; authors give you unlimited permission to link the compiled version of +; this file into combinations with other programs, and to distribute those +; combinations without any restriction coming from the use of this file. +; (The General Public License restrictions do apply in other respects; for +; example, they cover modification of the file, and distribution when not +; linked into a combine executable.) + ; Standalone interpreter ; ----------------------