diff --git a/gui/m291/makefile b/gui/m291/makefile index d615beb..61f29d5 100644 --- a/gui/m291/makefile +++ b/gui/m291/makefile @@ -8,7 +8,7 @@ ROM=bin/${ID}.rom all: ${ROM} lint: - @ ${LIN} ${ID}.tal + @ ${LIN} src/${ID}.tal run: all @ ${EMU} ${ROM} clean: diff --git a/gui/m291/src/assets.tal b/gui/m291/src/assets.tal index c7f77a1..79bdbc1 100644 --- a/gui/m291/src/assets.tal +++ b/gui/m291/src/assets.tal @@ -349,7 +349,10 @@ 0000 0000 0000 0000 0000 3333 0000 0000 0000 0000 0000 0000 0000 3030 0000 0000 ] +@mem &filepath $80 &dir $800 + &folders $200 + &roms $200 + &misc $200 + @buffer $200 &pos $2 -@dir $2000 - diff --git a/gui/m291/src/m291.tal b/gui/m291/src/m291.tal index c0f7d52..f68a912 100644 --- a/gui/m291/src/m291.tal +++ b/gui/m291/src/m291.tal @@ -1,140 +1,396 @@ -( mp3.tal ) - |00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1 -|10 @Console &vector $2 -|12 &read $1 -|17 &type $1 -|18 &write $1 -|19 &error $1 -|1c &addr $2 -|1e &mode $1 -|1f &exec $1 +|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1 |20 @Screen &vector $2 &width $2 &height $2 &auto $1 &pad $1 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1 -|a0 @File &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2 +|80 @Controller &vector $2 &button $1 &key $1 +|90 @Mouse &vector $2 &x $2 &y $2 &state $1 &chord $1 &pad $4 &scrolly &scrolly-hb $1 &scrolly-lb $1 +|a0 @File &vector $2 &success $1 &success-lb $1 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2 -|100 +|0000 + + @misc $1 + @selection $1 &mod $1 + @path $2 &null $80 + @lines &folders $1 &roms $1 &misc $1 + +|0100 @on-reset ( -> ) - ( | theme ) - #d2d2 DUP2 .System/r DEO2 - DUP2 .System/g DEO2 - .System/b DEO2 - + ;meta #06 DEO2 + #d20f .System/r DEO2 + #d24f .System/g DEO2 + #d204 .System/b DEO2 + + #0100 .Screen/width DEO2 + ;dict/home-path set-path + ;on-mouse .Mouse/vector DEO2 + ;on-control .Controller/vector DEO2 BRK - ( | initialize buffer ) - ;buffer ;buffer/pos STA2 - ( | run mpg123 ) - ;on-console .Console/vector DEO2 - ;program .Console/addr DEO2 - ( cmd addr ) #03 .Console/mode DEO - ( cmd mode ) #01 .Console/exec DEO - ( exec ) ;cmd1 print ;cmd2 print BRK -@ ( -- ) - ( here ) { ". $1 } +@meta $1 + ( name ) "Menu(Porporo) 0a + ( desc ) "File 20 "Browser 0a + ( auth ) "By 20 "Devine 20 "Lu 20 "Linvega 0a + ( date ) "9 20 "Dec 20 "2023 $1 + ( exts ) 00 + +@on-mouse ( -> ) + [ LIT2 00 -Mouse/state ] DEI NEQ #41 ADD ;cursor-icn + .Mouse/y DEI2 + .Mouse/state DEI DUP ?{ POP } + count-lines DIVk MUL SUB + ( >> ) + +@