(m291) Scroll long track names
This commit is contained in:
parent
c149d1b9e7
commit
c535dbf3d4
|
@ -279,6 +279,7 @@
|
|||
POP2 STH2r STH2r SWP2 OVR2 ADD2 SWP2
|
||||
( | print )
|
||||
calc-width .secprog STZ2
|
||||
<draw-title-scroll>
|
||||
<draw-progress>
|
||||
<draw-timestamp> !message/<new>
|
||||
|
||||
|
@ -382,10 +383,9 @@
|
|||
@str-lth ( a* b* -- a>b )
|
||||
STH2
|
||||
&>loop ( -- )
|
||||
LDAk LDAkr STHr SUBk ?&done
|
||||
DUP2 #0000 EQU2 ?&done
|
||||
POP2 INC2 INC2r !&>loop
|
||||
&done NIP2 LTH POP2r JMP2r
|
||||
LDAk LDAkr STHr SUBk ?{
|
||||
DUP2 #0000 EQU2 ?{ POP2 INC2 INC2r !&>loop } }
|
||||
NIP2 LTH POP2r JMP2r
|
||||
|
||||
@sort-folders ( -- )
|
||||
.lines/folders LDZ ?{ JMP2r }
|
||||
|
@ -412,13 +412,12 @@
|
|||
POP2 POP2 DUP2 STH2r swap-tracks #0080 ADD2 !&>loop
|
||||
|
||||
@swap-tracks ( src* dst* -- )
|
||||
EQU2k ?&skip
|
||||
DUP2 ;tmp <scpy>
|
||||
OVR2 STH2
|
||||
<scpy>
|
||||
;tmp STH2r <scpy>
|
||||
JMP2r
|
||||
&skip POP2 POP2 JMP2r
|
||||
EQU2k ?{
|
||||
DUP2 ;tmp <scpy>
|
||||
OVR2 STH2
|
||||
<scpy>
|
||||
;tmp STH2r !<scpy> }
|
||||
POP2 POP2 JMP2r
|
||||
|
||||
@count-lines ( -- lines )
|
||||
.lines/folders LDZ .lines/tracks LDZ ADD JMP2r
|
||||
|
@ -584,10 +583,23 @@
|
|||
<draw-next>
|
||||
<draw-progress> !<draw-timestamp>
|
||||
|
||||
@<draw-title-scroll> ( -- )
|
||||
;id3/title get-uf2-width #00d0 LTH2 ?{
|
||||
[ LIT2 &f $2 ] INC2k ,&f STR2
|
||||
DUP #0f AND ?{
|
||||
#0020 .Screen/y DEO2
|
||||
<clear-line>
|
||||
#0008 .Screen/x DEO2
|
||||
#0020 .Screen/y DEO2
|
||||
#04 SFT2 ;id3/title llen DIV2k MUL2 SUB2 ;id3/title ADD2 #01 !<draw-uf2> }
|
||||
POP2 }
|
||||
JMP2r
|
||||
|
||||
@<draw-title> ( -- )
|
||||
( | clear )
|
||||
#0020 .Screen/y DEO2
|
||||
<clear-line>
|
||||
#0000 ;<draw-title-scroll>/f STA2
|
||||
( | draw )
|
||||
#0020 .Screen/y DEO2
|
||||
;id3/title get-uf2-width #00d0 LTH2 ?{
|
||||
|
|
Loading…
Reference in New Issue