Skip to content

Commit

Permalink
Adds linking exception license to runtime parts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Jul 26, 2017
1 parent d6a444e commit bd5c00e
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------

Expand Down
8 changes: 8 additions & 0 deletions src/alloc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
; You should have received a copy of the GNU General Public License along
; with this program. If not, see <http://www.gnu.org/licenses/>
;
; 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
; ----------------
Expand Down
8 changes: 8 additions & 0 deletions src/interpreter.asm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
; You should have received a copy of the GNU General Public License along
; with this program. If not, see <http://www.gnu.org/licenses/>
;
; 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
; ----------------------
Expand Down
3 changes: 3 additions & 0 deletions src/menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/runtime.asm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
; You should have received a copy of the GNU General Public License along
; with this program. If not, see <http://www.gnu.org/licenses/>
;
; 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
; ---------------------------------------------
Expand Down
8 changes: 8 additions & 0 deletions src/standalone.asm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
; You should have received a copy of the GNU General Public License along
; with this program. If not, see <http://www.gnu.org/licenses/>
;
; 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
; ----------------------
Expand Down

0 comments on commit bd5c00e

Please sign in to comment.