diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index d8cd8add6..706221b7e 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -633,6 +633,10 @@ asmsub init_system() { ; Called automatically by the loader program logic. %asm {{ sei + lda #0 + tax + tay + jsr cx16.mouse_config ; disable mouse cld lda VERA_DC_VIDEO and #%00000111 ; retain chroma + output mode diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 6896dbe3e..7e67df90f 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -3,12 +3,18 @@ TODO For next minor release ^^^^^^^^^^^^^^^^^^^^^^ +- improve search paths for %import; importing something from code in a subdir + won't find a module in the current directory where the compiler is launched in. + also it prints '.' as search path which is confusing. + + ... For 9.0 major changes ^^^^^^^^^^^^^^^^^^^^^ - duplicate diskio for cx16 (get rid of cx16diskio, just copy diskio and tweak everything) + documentation +- get rid of the disknumber parameter everywhere in diskio, make it a configurable variable that defaults to 8 - get f_seek_w working like in the BASIC program - this needs the changes to diskio.f_open to use suffixes ,p,m - Some support for (64tass) SEGMENTS ? - Add a mechanism to allocate variables into golden ram (or segments really) (see GoldenRam class) diff --git a/examples/cx16/pcmaudio/adpcm.p8 b/examples/cx16/pcmaudio/adpcm.p8 index 3aa11ab44..94d97ddb1 100644 --- a/examples/cx16/pcmaudio/adpcm.p8 +++ b/examples/cx16/pcmaudio/adpcm.p8 @@ -57,7 +57,8 @@ main { nibblesptr++ } } - float duration_secs = (c64.RDTIM16() as float) / 60.0 + const float REFRESH_RATE = 25.0e6/(525.0*800) ; Vera VGA refresh rate is not precisely 60 hz! + float duration_secs = (c64.RDTIM16() as float) / REFRESH_RATE floats.print_f(duration_secs) txt.print(" seconds (approx)\n") const float PCM_WORDS_PER_BLOCK = 1 + 252*2