This commit is contained in:
Irmen de Jong 2020-12-23 02:53:30 +01:00
parent f0f6150e18
commit b3b3cf3807
2 changed files with 2 additions and 19 deletions

View File

@ -2,11 +2,10 @@
TODO
====
- optimize (byte) bitshifting 1<<x (and 2**x) via lookup table 1,2,4,8,...
- hoist all variable declarations up to the subroutine scope *before* even the constant folding takes place (to avoid undefined symbol errors when referring to a variable from another nested scope in the subroutine)
- make it possible to use cpu opcodes such as 'nop' as variable names by prefixing all asm vars with something such as '_'
- option to load the built-in library files from a directory instead of the embedded ones (for easier library development/debugging)
- use VIC banking to move up the graphics bitmap memory location. Move it to $e000 under the kernal rom?
- c64: use VIC banking to move up the graphics bitmap memory location. Move it to $e000 under the kernal rom?
- some support for recursive subroutines?
- via %option recursive?: allocate all params and local vars on estack, don't allow nested subroutines, can begin by first not allowing any local variables just fixing the parameters
- Or via a special recursive call operation that copies the current values of all local vars (including arguments) to the stack, replaces the arguments, jsr subroutine, and after returning copy the stack back to the local variables

View File

@ -9,22 +9,6 @@
main {
sub start () {
ubyte value = 100
ubyte add = 1
sub dinges() {
value+=add
}
sub dinges2() {
value+=add
}
txt.print_ub(value)
txt.chrout('\n')
dinges()
dinges2()
txt.print_ub(value)
txt.chrout('\n')
txt.print("hello\n")
}
}