From be7a4e21f34c60203f177e29c699cb568d338a31 Mon Sep 17 00:00:00 2001 From: Veikko Sariola Date: Sat, 24 Oct 2020 22:07:58 +0300 Subject: [PATCH] Optimize asm player size, removing one unnecessary instruction. --- src/sointu_footer.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sointu_footer.inc b/src/sointu_footer.inc index e0be171..fff207c 100644 --- a/src/sointu_footer.inc +++ b/src/sointu_footer.inc @@ -466,8 +466,7 @@ su_update_voices_trackloop: cmp al, HLD ; anything but hold causes action je short su_update_voices_nexttrack inc dword [_DI+su_voice.release] ; set the voice currently active to release; notice that it could increment any number of times - cmp al, HLD - jl su_update_voices_nexttrack ; if cl < HLD (no new note triggered) goto nexttrack + jb su_update_voices_nexttrack ; if cl < HLD (no new note triggered) goto nexttrack su_update_voices_retrigger: stosd ; save note mov ecx, (su_voice.size - su_voice.release)/4 ; could be xor ecx, ecx; mov ch,...>>8, but will it actually be smaller after compression?