diff --git a/examples/balloonflight.p8 b/examples/balloonflight.p8 index a1d964d7c..38b466b96 100644 --- a/examples/balloonflight.p8 +++ b/examples/balloonflight.p8 @@ -3,9 +3,6 @@ %import textio %zeropage basicsafe -; TODO balloon only goes down now - - main { ubyte perform_scroll = false @@ -48,7 +45,9 @@ main { perform_scroll = false txt.scroll_left(true) - if c64.RASTER & 1 + + ; float the balloon + if rnd() & %10000 c64.SPXY[1] ++ else c64.SPXY[1] -- diff --git a/examples/diskdir.p8 b/examples/diskdir.p8 index 920a015b7..adcd6386a 100644 --- a/examples/diskdir.p8 +++ b/examples/diskdir.p8 @@ -5,8 +5,6 @@ ; This example shows the directory contents of disk drive 8. -; TODO why is this larger than on the previous compiler version? - main { sub start() { txt.print("directory of disk drive #8:\n\n") diff --git a/examples/fibonacci.p8 b/examples/fibonacci.p8 index 3ddeb75e2..ab7b3222c 100644 --- a/examples/fibonacci.p8 +++ b/examples/fibonacci.p8 @@ -4,8 +4,6 @@ ; This example computes the first 20 values of the Fibonacci sequence. ; Note: this program is compatible with C64 and CX16. -; TODO why is this larger than on the previous compiler version? - main { sub start() { txt.print("fibonacci sequence\n") diff --git a/examples/hello.p8 b/examples/hello.p8 index 8d4580435..25e099eb2 100644 --- a/examples/hello.p8 +++ b/examples/hello.p8 @@ -5,8 +5,6 @@ ; Note: this program is compatible with C64 and CX16. -; TODO why is this larger than on the previous compiler version? - main { sub start() { diff --git a/examples/swirl.p8 b/examples/swirl.p8 index d28ccfca8..b2424f594 100644 --- a/examples/swirl.p8 +++ b/examples/swirl.p8 @@ -3,9 +3,6 @@ ; Note: this program is compatible with C64 and CX16. -; TODO why is this larger than on the previous compiler version? - - main { const uword screenwidth = txt.DEFAULT_WIDTH const uword screenheight = txt.DEFAULT_HEIGHT diff --git a/examples/test.p8 b/examples/test.p8 index c675aa876..b44d613f6 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,22 +1,11 @@ -%import syslib -; %import graphics +%target c64 %import textio -%import floats +%import syslib %zeropage basicsafe main { - - sub start() { - - byte bb= -22 - ubyte ubb = 22 - word ww= -2222 - uword uww = 2222 - float ff = -2.2 - - - ; @($c000) *= 99 ; TODO implement + sub start() { } } diff --git a/examples/wizzine.p8 b/examples/wizzine.p8 index 9ba38dc9d..9211a817e 100644 --- a/examples/wizzine.p8 +++ b/examples/wizzine.p8 @@ -2,9 +2,6 @@ %import syslib %zeropage basicsafe -; TODO fix code that has become slower (should be fixed after all the new comparison expression code is done) - - spritedata $0a00 { ; this memory block contains the sprite data ; it must start on an address aligned to 64 bytes. @@ -58,7 +55,7 @@ irq { ubyte @zp y = cos8u(angle*3-spri*16) / 2 + 70 c64.SPXYW[spri] = mkword(y, lsb(x)) c64.MSIGX <<= 1 - if msb(x) c64.MSIGX++ ; TODO has this become badly translated to asm?? it makes the loop quite slow + if msb(x) c64.MSIGX++ } c64.EXTCOL-=8 }