From 1da048a18186d0603010d0f82aa72d82424c7243 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 26 Aug 2024 10:50:10 -0700 Subject: [PATCH] (m291) Implemented pause --- gui/m291/src/assets.tal | 8 ++++++++ gui/m291/src/m291.tal | 30 +++++++++++++++++++++++++++--- gui/m291/ss10x10.chr | Bin 4096 -> 4096 bytes 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/gui/m291/src/assets.tal b/gui/m291/src/assets.tal index 8ea0970..2ec8924 100644 --- a/gui/m291/src/assets.tal +++ b/gui/m291/src/assets.tal @@ -27,6 +27,14 @@ 0804 0201 0000 0000 0000 0080 601f 0000 0000 0001 06f8 0000 1020 4080 0000 0000 ] +@play-icn [ + 0000 000c 0f0f 0f0f 0000 0000 00c0 f0fc + 0f0f 0f0f 0c00 0000 fcf0 c000 0000 0000 ] + +@pause-icn [ + 0000 001e 1e1e 1e1e 0000 0078 7878 7878 + 1e1e 1e1e 1e00 0000 7878 7878 7800 0000 ] + @fill-icn [ ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ] diff --git a/gui/m291/src/m291.tal b/gui/m291/src/m291.tal index 38542eb..c44d093 100644 --- a/gui/m291/src/m291.tal +++ b/gui/m291/src/m291.tal @@ -21,6 +21,7 @@ @path $2 &null $80 @lines &folders $1 &roms $1 &misc $1 @playing $1 + @paused $1 @secfrom $2 @secto $2 @secprog $2 @@ -94,6 +95,7 @@ ( up ) DUP #10 NEQ ?{ #ff } ( down ) DUP #20 NEQ ?{ #01 } ( A ) DUP #01 NEQ ?{ .selection LDZ } + POP .Controller/key DEI DUP #20 NEQ ?{ } POP BRK ( @@ -108,6 +110,7 @@ DUP [ LIT "S ] EQU ?handle-status DUP [ LIT "F ] EQU ?handle-frame DUP [ LIT "I ] EQU ?handle-id3 + DUP [ LIT "P ] EQU ?handle-pause POP ( | not-handled ) @@ -167,6 +170,10 @@ POP #0a19 DEO !message/ +@handle-pause ( buf* char -- ) + POP INC2 INC2 LDA [ LIT "1 ] SUB #01 EOR .paused STZ + !message/ + ( @|core ) @@ -209,7 +216,8 @@ ( no-folder spacer ) has-spacer #00 EQU ?{ #0008 ADD2 } ( padding ) #0020 ADD2 ( playing ) [ LIT2 00 -playing ] LDZ EQU ?{ #0080 ADD2 } - .Screen/height DEO2 ! + .Screen/height DEO2 + ! @ ( line* -- ) #0005 ADD2 LDAk [ LIT ". ] EQU ?&hidden @@ -241,7 +249,8 @@ @