From 9a68864b675804ca00b8fa6027ac3adf87596c79 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sat, 4 Dec 2021 00:13:38 +0100 Subject: [PATCH] version 7.5-dev --- compiler/res/version.txt | 2 +- docs/source/todo.rst | 3 --- examples/test.p8 | 25 ++++++------------------- 3 files changed, 7 insertions(+), 23 deletions(-) diff --git a/compiler/res/version.txt b/compiler/res/version.txt index 815da58b7..906522e09 100644 --- a/compiler/res/version.txt +++ b/compiler/res/version.txt @@ -1 +1 @@ -7.4.1 +7.5-dev diff --git a/docs/source/todo.rst b/docs/source/todo.rst index fe9230783..cf98e7348 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -3,9 +3,6 @@ TODO For next compiler release (7.5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- optimize loops that iterate 256 times to not use word counter (memcopy, repeat, for, ...) -- return 2+var -> optimize stack eval? - ... diff --git a/examples/test.p8 b/examples/test.p8 index 700384abc..309068578 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,30 +1,17 @@ %import textio -%import test_stack -%import diskio %zeropage basicsafe main { sub start() { - test_stack.test() + uword scrpos = $0400 + repeat 256 { + @(scrpos) = 81 + scrpos++ + } - str filename="...................." - uword length - - txt.print("filename? ") - txt.input_chars(filename) + txt.print_uw(scrpos) txt.nl() - txt.print("loading at $1000...") - length = diskio.load(8, filename, $1000) - txt.print_uw(length) - txt.nl() - - txt.print("raw loading at $4000...") - length = diskio.load_raw(8, filename, $4000) - txt.print_uw(length) - txt.nl() - - test_stack.test() } }