mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-03 09:08:18 -04:00
Optimize asm player size, removing one unnecessary instruction.
This commit is contained in:
parent
3bb3e5c88e
commit
be7a4e21f3
@ -466,8 +466,7 @@ su_update_voices_trackloop:
|
|||||||
cmp al, HLD ; anything but hold causes action
|
cmp al, HLD ; anything but hold causes action
|
||||||
je short su_update_voices_nexttrack
|
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
|
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
|
jb su_update_voices_nexttrack ; if cl < HLD (no new note triggered) goto nexttrack
|
||||||
jl su_update_voices_nexttrack ; if cl < HLD (no new note triggered) goto nexttrack
|
|
||||||
su_update_voices_retrigger:
|
su_update_voices_retrigger:
|
||||||
stosd ; save note
|
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?
|
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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user