(m291) Faster time drawings
This commit is contained in:
parent
b2ba0b0d9d
commit
ea26b7b37d
|
@ -402,19 +402,27 @@
|
|||
POP2 POP2 JMP2r
|
||||
|
||||
@<draw-secfrom> ( time* -- )
|
||||
DUP2 [ LIT2 &last $2 ] NEQ2 ?{ POP2 JMP2r }
|
||||
DUP2 ,&last STR2
|
||||
( | changed )
|
||||
[ LIT2 15 -Screen/auto ] DEO
|
||||
#0008 .Screen/x DEO2
|
||||
#0070 .Screen/y DEO2 !<draw-time>
|
||||
#0070 .Screen/y DEO2
|
||||
#01 ;<draw-glyph>/color STA !<draw-time>
|
||||
|
||||
@<draw-secto> ( time* -- )
|
||||
.Screen/width DEI2 #0008 SUB2 .Screen/x DEO2
|
||||
DUP2 [ LIT2 &last $2 ] NEQ2 ?{ POP2 JMP2r }
|
||||
DUP2 ,&last STR2
|
||||
( | changed )
|
||||
[ LIT2 15 -Screen/auto ] DEO
|
||||
#8000 .Screen/x DEO2
|
||||
#0070 .Screen/y DEO2
|
||||
;placeholder/time-b #01 <draw-uf2-right>
|
||||
<phex>
|
||||
#0a19 DEO
|
||||
JMP2r
|
||||
.Screen/width DEI2 OVR2 <draw-time>
|
||||
.Screen/x DEI2 #7ff8 SUB2 SUB2 .Screen/x DEO2
|
||||
#01 ;<draw-glyph>/color STA
|
||||
( >> )
|
||||
|
||||
@<draw-time> ( time* -- )
|
||||
[ LIT2 15 -Screen/auto ] DEO
|
||||
( x0:00:00 ) DUP2 #8ca0 DIV2 NIP <draw-dec>
|
||||
( 0x:00:00 ) DUP2 #0e10 DIV2 NIP <draw-dec>
|
||||
[ LIT ": ] <draw-glyph>
|
||||
|
@ -422,8 +430,8 @@
|
|||
( 00:0x:00 ) DUP2 #003c DIV2 NIP <draw-dec>
|
||||
[ LIT ": ] <draw-glyph>
|
||||
( 00:00:x0 ) DUP2 #000a DIV2 NIP <draw-dec>
|
||||
( 00:00:0x ) NIP <draw-dec>
|
||||
JMP2r
|
||||
( 00:00:0x ) NIP
|
||||
( >> )
|
||||
|
||||
@<draw-dec> ( value -- )
|
||||
#0a DIVk MUL SUB [ LIT "0 ] ADD !<draw-glyph>
|
||||
|
|
Loading…
Reference in New Issue