From 26c7323d920bcd9065c88e12c2d81a130052452f Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 25 Aug 2024 16:40:01 -0700 Subject: [PATCH] (m291) Progress --- gui/m291/src/m291.tal | 218 ++++++++++++++++++++++++------------------ 1 file changed, 127 insertions(+), 91 deletions(-) diff --git a/gui/m291/src/m291.tal b/gui/m291/src/m291.tal index f68a912..c04366a 100644 --- a/gui/m291/src/m291.tal +++ b/gui/m291/src/m291.tal @@ -1,24 +1,23 @@ -|00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1 +|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 &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 |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 +|0000 @misc $1 -|0000 +@selection $1 &mod $1 - @misc $1 - @selection $1 &mod $1 - @path $2 &null $80 - @lines &folders $1 &roms $1 &misc $1 +@path $2 &null $80 -|0100 - -@on-reset ( -> ) +@lines &folders $1 &roms $1 &misc $1 +|0100 @on-reset ( -> ) ;meta #06 DEO2 - #d20f .System/r DEO2 - #d24f .System/g DEO2 - #d204 .System/b DEO2 + #e1ff .System/r DEO2 + #e1ff .System/g DEO2 + #e1f4 .System/b DEO2 #0100 .Screen/width DEO2 ;dict/home-path set-path @@ -55,8 +54,9 @@ ( | below ) DUP count-lines LTH ?{ POP #ff JMP2r } JMP2r + &outside ( y* -- id ) - POP2 #ff JMP2r + POP2 #ff JMP2r @on-control ( -> ) ( | mod ) @@ -88,8 +88,8 @@ ( | parse ) ;mem/dir &w ( -- ) - DUP2 - lcap/ INC2 LDAk ?&w + DUP2 + lcap/ INC2 LDAk ?&w POP2 ( >> ) @@ -97,8 +97,7 @@ #00 count-lines ( empty ) DUP #00 EQU ADD #40 SFT2 ( no-folder spacer ) has-spacer #00 EQU ?{ #0008 ADD2 } - ( padding ) #0016 ADD2 .Screen/height DEO2 - ! + ( padding ) #0020 ADD2 .Screen/height DEO2 ! @ ( line* -- ) #0005 ADD2 LDAk [ LIT ". ] EQU ?&hidden @@ -107,16 +106,19 @@ ;mem/misc [ LIT2 00 -lines/misc ] LDZ #40 SFT2 ADD2 .lines/misc LDZ INC .lines/misc STZ JMP2r + &folder ( line* -- ) - ;mem/folders [ LIT2 00 -lines/folders ] LDZ #40 SFT2 ADD2 - .lines/folders LDZ INC .lines/folders STZ - JMP2r + ;mem/folders [ LIT2 00 -lines/folders ] LDZ #40 SFT2 ADD2 + .lines/folders LDZ INC .lines/folders STZ + JMP2r + &rom ( line* -- ) - ;mem/roms [ LIT2 00 -lines/roms ] LDZ #40 SFT2 ADD2 - .lines/roms LDZ INC .lines/roms STZ - JMP2r + ;mem/roms [ LIT2 00 -lines/roms ] LDZ #40 SFT2 ADD2 + .lines/roms LDZ INC .lines/roms STZ + JMP2r + &hidden ( line* -- ) - POP2 JMP2r + POP2 JMP2r @ ( mod -- ) .selection LDZ ADD INCk ?{ @@ -127,34 +129,36 @@ @