mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
optimize(templates): don't use LEA in player, use MOV
Compresses better.
This commit is contained in:
parent
c28bacdfc7
commit
3cbc500361
@ -63,7 +63,7 @@ su_render_sampleloop: ; loop through every sample in the row
|
|||||||
mov {{.COM}}, {{.PTRWORD}} su_patch_code ; COM points to vm code
|
mov {{.COM}}, {{.PTRWORD}} su_patch_code ; COM points to vm code
|
||||||
mov {{.VAL}}, {{.PTRWORD}} su_patch_parameters ; VAL points to unit params
|
mov {{.VAL}}, {{.PTRWORD}} su_patch_parameters ; VAL points to unit params
|
||||||
{{- if .HasOp "delay"}}
|
{{- if .HasOp "delay"}}
|
||||||
lea {{.CX}}, [{{.DX}} + su_synthworkspace.size - su_delayline_wrk.filtstate]
|
mov {{.CX}}, {{.PTRWORD}} su_synth_obj + su_synthworkspace.size - su_delayline_wrk.filtstate
|
||||||
{{- end}}
|
{{- end}}
|
||||||
lea {{.WRK}}, [{{.DX}} + su_synthworkspace.voices] ; WRK points to the first voice
|
lea {{.WRK}}, [{{.DX}} + su_synthworkspace.voices] ; WRK points to the first voice
|
||||||
{{.Call "su_run_vm"}} ; run through the VM code
|
{{.Call "su_run_vm"}} ; run through the VM code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user