diff --git a/projects/examples/gui/timer.tal b/projects/examples/gui/timer.tal index 4357629..34837d6 100644 --- a/projects/examples/gui/timer.tal +++ b/projects/examples/gui/timer.tal @@ -43,21 +43,31 @@ !& &pause ( -- ) [ LIT2 00 _&paused ] LDR EQU - ( ) DUP ,&paused STR - ( ) INC ;/color STA + ( ) INCk + ,&paused STR !& &end ( -- ) #0000 .Screen/vector DEO2 - #06 ;/color STA + #06 !& & ( -- ) - #0010 DUP2 .Screen/x DEO2 - .Screen/y DEO2 - [ LIT2 01 -Screen/auto ] DEO - ,&time LDR DUP - ( x0 ) #0a DIV - ( 0x ) #0a DIVk MUL SUB - JMP2r + ,&time LDR ! + +( +@|drawing ) + +@ ( color -- ) + ;/color STA + JMP2r + +@ ( dec -- ) + #0010 DUP2 .Screen/x DEO2 + .Screen/y DEO2 + [ LIT2 01 -Screen/auto ] DEO + DUP + ( x0 ) #0a DIV + ( 0x ) #0a DIVk MUL SUB + ( >> ) @ ( num -- ) #00 SWP #30 SFT2 ;numbers-icns ADD2 .Screen/addr DEO2