This commit is contained in:
Irmen de Jong 2022-02-23 21:58:27 +01:00
parent 1b86117754
commit 891f870ec0
3 changed files with 3 additions and 46 deletions

View File

@ -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

View File

@ -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 {
}
}
}

View File

@ -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