diff --git a/docs/source/todo.rst b/docs/source/todo.rst index bd1368383..1a8e38e21 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -23,6 +23,7 @@ Future Things and Ideas ^^^^^^^^^^^^^^^^^^^^^^^ Compiler: +- (due to the new atari target:) rework "launcher" option to a better name, include "XEX", and automatically set load address to $2000 in this case so %address can be omitted for atari programs too - writeAssembly(): make it possible to actually get rid of the VarDecl nodes by fixing the rest of the code mentioned there. - make everything an expression? (get rid of Statements. Statements are expressions with void return types?). - allow "xxx" * constexpr (where constexpr is not a number literal), now gives expression error not same type diff --git a/examples/test.p8 b/examples/test.p8 index 074d3c0c2..0d13caf58 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,51 +1,7 @@ %import textio -%zeropage kernalsafe -; %launcher none -;%output prg -;%address $2022 +;%address $2000 main { sub start() { - ubyte[20] array1 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] - ubyte[20] array2 = [2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2] - - sys.set_irqd() - - cx16.rombank(9) - sys.memset(array1, 20, 255) - - cx16.rombank(0) - ubyte ii - for ii in array1 { - txt.print_ubhex(ii, false) - txt.spc() - } - txt.nl() - for ii in array2 { - txt.print_ubhex(ii, false) - txt.spc() - } - txt.nl() - - cx16.rombank(9) - sys.memset(array1, 20, 255) - array2=array1 - - cx16.rombank(0) - for ii in array1 { - txt.print_ubhex(ii, false) - txt.spc() - } - txt.nl() - for ii in array2 { - txt.print_ubhex(ii, false) - txt.spc() - } - txt.nl() - - cx16.rombank(4) - - repeat { - } } } diff --git a/scripts/clean.sh b/scripts/clean.sh index 361d231a1..7d632f266 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -rm -f *.jar *.asm *.prg *.vm.txt *.vice-mon-list *.list a.out imgui.ini +rm -f *.bin *.xex *.jar *.asm *.prg *.vm.txt *.vice-mon-list *.list a.out imgui.ini rm -rf build out rm -rf compiler/build codeGenTargets/build codeGenCpu6502/build codeOptimizers/build compilerInterfaces/build compilerAst/build dbusCompilerService/build httpCompilerService/build parser/build