mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
templates: optimize sources.asm size
This commit is contained in:
parent
adcf3ebce8
commit
248ca6e30b
@ -18,7 +18,8 @@ su_op_envelope_mono:
|
||||
mov eax, dword [{{.INP}}-su_voice.inputs+su_voice.release] ; eax = su_instrument.release
|
||||
test eax, eax ; if (eax == 0)
|
||||
je su_op_envelope_process ; goto process
|
||||
mov dword [{{.WRK}}], {{.InputNumber "envelope" "release"}} ; [state]=RELEASE
|
||||
mov al, {{.InputNumber "envelope" "release"}} ; [state]=RELEASE
|
||||
mov dword [{{.WRK}}], eax ; note that mov al, XXX; mov ..., eax is less bytes than doing it directly
|
||||
su_op_envelope_process:
|
||||
mov eax, dword [{{.WRK}}] ; al=[state]
|
||||
fld dword [{{.WRK}}+4] ; x=[level]
|
||||
|
Loading…
x
Reference in New Issue
Block a user