-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds libraries and scripts to use the cross-compiler.
- Loading branch information
Showing
8 changed files
with
98 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,10 @@ bin/ | |
gen/ | ||
disk/ | ||
temp/ | ||
compiler/fastbasic-int | ||
compiler/fastbasic-fp | ||
src/basic.asm | ||
fastbasic.atr | ||
*.lib | ||
.hg/ | ||
.hg* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FastBasic - Fast basic interpreter for the Atari 8-bit computers | ||
Copyright (C) 2017 Daniel Serpell | ||
|
||
This program 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 2 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/> | ||
|
||
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
For simple compilation of BAS files to XEX (Atari DOS executable), use the included | ||
compile-fp and compile-int scripts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
ASM=${1%.*}.asm | ||
XEX=${1%.*}.xex | ||
if [ -z "$1" ]; then | ||
echo "Usage: $0 <basic-file>" | ||
exit 1 | ||
fi | ||
if [ "$1" -ef "$ASM" ]; then | ||
echo "Error, input file same as ASM file" | ||
exit 1 | ||
fi | ||
if [ "$1" -ef "$XEX" ]; then | ||
echo "Error, input file same as XEX file" | ||
exit 1 | ||
fi | ||
echo "Compiling '$1' to assembler '$ASM'." | ||
./fastbasic-fp "$1" "$ASM" || exit 1 | ||
echo "Assembling '$ASM' to XEX file '$XEX'." | ||
cl65 -tatari -Cfastbasic.cfg "$ASM" -o "$XEX" fastbasic-fp.lib || exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
ASM=${1%.*}.asm | ||
XEX=${1%.*}.xex | ||
if [ -z "$1" ]; then | ||
echo "Usage: $0 <basic-file>" | ||
exit 1 | ||
fi | ||
if [ "$1" -ef "$ASM" ]; then | ||
echo "Error, input file same as ASM file" | ||
exit 1 | ||
fi | ||
if [ "$1" -ef "$XEX" ]; then | ||
echo "Error, input file same as XEX file" | ||
exit 1 | ||
fi | ||
echo "Compiling '$1' to assembler '$ASM'." | ||
./fastbasic-int "$1" "$ASM" || exit 1 | ||
echo "Assembling '$ASM' to XEX file '$XEX'." | ||
cl65 -tatari -Cfastbasic.cfg "$ASM" -o "$XEX" fastbasic-int.lib || exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters