From 1161e5cb9df9ae166b939b98a280435639e52336 Mon Sep 17 00:00:00 2001 From: "JASON-6700K\\jandersen" Date: Wed, 22 Jul 2020 11:04:27 -0400 Subject: [PATCH] GSLA Player - updates for looping, and animation play stopping, and frame syncing --- asm/play.s | 26 +++++++++-------- asm/shell.s | 83 +++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 91 insertions(+), 18 deletions(-) diff --git a/asm/play.s b/asm/play.s index f03b1f4..d38166b 100644 --- a/asm/play.s +++ b/asm/play.s @@ -41,9 +41,10 @@ *--- DP may be anywhere in bank 0, but make sure it's PAGE aligned *---- for performance reasons -; rel dsk play.l + ext EndOfAnimFrame + ; ; Defines, for the list of allocated memory banks ; @@ -74,18 +75,19 @@ extended_command lsr bcs :end_of_file -* ; end of frame + ; end of frame + ; check elapsed ticks (need at least 1) + ; For now just inline vsync (preferable to check the number of + ; if jiffy that have elapsed, because if the animation uses more than + ; roughly 10% of the screen we don't want to sync here + phx + + jsl EndOfAnimFrame + + plx + bcs :end_of_file + ldy #$2000 -* ; check elapsed ticks (need at least 1) -* ; For now just inline vsync (preferable to check the number of -* ; if jiffy that have elapsed, because if the animation uses more than -* ; roughly 10% of the screen we don't want to sync here -* lda