From e2886e53033ec3a9efb59e4db1ac8b7c798efb7a Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 1 Apr 2022 20:50:24 +0200 Subject: [PATCH] x16 r39: update vtui lib and example --- .../src/prog8/ast/statements/AstStatements.kt | 1 + docs/source/todo.rst | 1 - examples/cx16/vtui/VTUI0.8.BIN | Bin 1016 -> 0 bytes examples/cx16/vtui/VTUI0.9.BIN | Bin 0 -> 953 bytes examples/cx16/vtui/testvtui.p8 | 4 ++-- 5 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 examples/cx16/vtui/VTUI0.8.BIN create mode 100644 examples/cx16/vtui/VTUI0.9.BIN diff --git a/compilerAst/src/prog8/ast/statements/AstStatements.kt b/compilerAst/src/prog8/ast/statements/AstStatements.kt index 0b1f8fe2f..3468c0d9d 100644 --- a/compilerAst/src/prog8/ast/statements/AstStatements.kt +++ b/compilerAst/src/prog8/ast/statements/AstStatements.kt @@ -1092,6 +1092,7 @@ class Pipe(override var source: Expression, // Calls to builtin functions will be replaced with this node just before handing the Ast to the codegen. // this is meant to eventually (?) be able to not have any FunctionCallStatement nodes to worry about anymore // in the codegen, because they have been converted into GoSub (for instance) or this node. +// However, if/when the codegen is moved over to use the new CodeAst (PtProgram etc etc) this is all moot. class BuiltinFunctionCallStatement(override var target: IdentifierReference, override var args: MutableList, override val position: Position) : Statement(), IFunctionCall { diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 1e61518bf..77663a412 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -6,7 +6,6 @@ For next release - x16: add new keyboard APIs https://github.com/commanderx16/x16-docs/blob/master/Commander%20X16%20Programmer%27s%20Reference%20Guide.md#keyboard - x16: optimize diskio load_raw because headerless files are now supported https://github.com/commanderx16/x16-rom/pull/216 note: must still work on c64/c128 that don't have this! -- x16: fix wormfood (requires new VTUI lib) - vm codegen: When - vm codegen: Pipe expression diff --git a/examples/cx16/vtui/VTUI0.8.BIN b/examples/cx16/vtui/VTUI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+1}17$zxt zd*J6y$n&`ys-;BCSc;o%LN~IY8lBjBg6tS%v$Uc=4zGXx6!v}|1QvRZEu{TU(b=$b zzMS@>;(`Ir;tjJg(N(1qVogY)R!Grq0b51;ER7*M4BO*4DxqT0?x0=B#*m4v_CO|p z+3f&rB&6L6alb+B_Y<+u)oy{#Ic$;&>YA@TNCulVeY_f ztB<*zUf)Yp-z_>6IFO;QLN1L4VCOg2Nd5gBhDY-b9!&@y%`1PnDfXx6dj4rcf&T_B Ct8qR6 literal 0 HcmV?d00001 diff --git a/examples/cx16/vtui/testvtui.p8 b/examples/cx16/vtui/testvtui.p8 index ac7734726..bfac7e06f 100644 --- a/examples/cx16/vtui/testvtui.p8 +++ b/examples/cx16/vtui/testvtui.p8 @@ -11,7 +11,7 @@ main { store_logo() txt.lowercase() - vtui.screen_set(2) + vtui.screen_set(0) vtui.clr_scr('%', $50) vtui.gotoxy(5,5) vtui.fill_box(':', 70, 50, $c6) @@ -110,7 +110,7 @@ char_loop: vtui $1000 { - %asmbinary "VTUI0.8.BIN", 2 ; skip the 2 dummy load address bytes + %asmbinary "VTUI0.9.BIN", 2 ; skip the 2 dummy load address bytes ; NOTE: base address $1000 here must be the same as the block's memory address, for obvious reasons! ; The routines below are for VTUI 0.8