-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
23 additions
and
52 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 |
---|---|---|
@@ -1,37 +1,7 @@ | ||
DIRECTORY=$(cd `dirname $0` && pwd) | ||
|
||
cd $1 | ||
|
||
|
||
|
||
|
||
#!/bin/bash | ||
export MAINC="main.c" | ||
export OUT_NAME=$2 | ||
|
||
trunkName=$(head -c 8 <<<$2) # truncate name to make sure it is no more than 8 char long | ||
|
||
# Compile with custom crt0 | ||
docker run -v ${DIRECTORY}:/src/ z88dk/z88dk zcc +ti83p -DFLASH_APP -subtype=asm -o $1/$OUT_NAME.bin $1/$MAINC -crt0 other_files/ti83p_crt0_app.asm $3 | ||
|
||
# Now we need to rebuild the .bin with our custom name | ||
|
||
nameLn=${#trunkName} #length of trunkName | ||
|
||
cat $OUT_NAME.bin | head -c 18 > x.bin # Write bytes before name in header | ||
echo -n $trunkName >> x.bin # Write your name | ||
|
||
# Pad name (if needed) | ||
while [ $nameLn -lt 8 ] | ||
do | ||
echo -n " " >> x.bin | ||
((nameLn++)) | ||
done | ||
|
||
# Write rest of app | ||
cat $OUT_NAME.bin | tail -c+27 >> x.bin | ||
rm -f $OUT_NAME.bin # Could be write protected | ||
mv x.bin $OUT_NAME.bin | ||
|
||
$DIRECTORY/other_files/rabbitsign -t 8xk -g -f $OUT_NAME.bin | ||
|
||
# rm $OUT_NAME.bin | ||
cd $1 | ||
zcc +ti83p -create-app -subtype=app_one_page -o $OUT_NAME.bin $MAINC -pragma-string:name=$2 | ||
mv $OUT_NAME.bin.8xk $OUT_NAME.8xk |
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 |
---|---|---|
@@ -1,15 +1,10 @@ | ||
DIRECTORY=$(cd `dirname $0` && pwd) | ||
|
||
|
||
|
||
#!/bin/bash | ||
export MAINC="main.c" | ||
export OUT_NAME=$2 | ||
|
||
|
||
docker run -v ${DIRECTORY}:/src/ z88dk/z88dk zcc +ti83p -DRAM_PROG -subtype=asm -o $1/$OUT_NAME.bin $1/$MAINC $3 | ||
cat <( echo -ne "\xbb\x6d" ) $1/$OUT_NAME.bin > $1/$OUT_NAME.bin2 | ||
|
||
cd $1 | ||
python $DIRECTORY/other_files/binpac8x.py $OUT_NAME.bin2 -O $OUT_NAME | ||
zcc +ti83p -subtype=asm -create-app -o $OUT_NAME.bin $MAINC | ||
# echo docker run -v ${DIRECTORY}:/src/ z88dk/z88dk zcc +ti83p -subtype=asm -o $OUT_NAME.bin $MAINC | ||
# +ti83p -DRAM_PROG -subtype=asm -create-app -o $1/$OUT_NAME.bin $1/$MAINC $3 | ||
# rm $OUT_NAME.bin $OUT_NAME.bin2 | ||
|
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
#!/bin/bash | ||
rm examples/*/*.bin | ||
rm examples/*/*.8xk | ||
rm examples/*/*.8xp |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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