mirror of
https://github.com/irmen/prog8.git
synced 2024-12-22 03:29:41 +00:00
todo
This commit is contained in:
parent
1b86117754
commit
891f870ec0
@ -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
|
||||
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user