From bd005d52a71337f609858cce3dddf0bef2d6c92f Mon Sep 17 00:00:00 2001 From: Veikko Sariola Date: Sat, 23 May 2020 15:09:32 +0300 Subject: [PATCH] Clean up whitespace. --- src/opcodes/arithmetic.asm | 4 ++-- src/opcodes/effects.asm | 8 ++++---- src/opcodes/sources.asm | 2 +- src/opcodes/sources.inc | 6 +++--- src/sointu.inc | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/opcodes/arithmetic.asm b/src/opcodes/arithmetic.asm index 3816caa..6b06eb4 100644 --- a/src/opcodes/arithmetic.asm +++ b/src/opcodes/arithmetic.asm @@ -2,7 +2,7 @@ SECT_TEXT(suarithm) ;------------------------------------------------------------------------------- ; op_pop function: a -> (empty) -; stereo: a b -> (empty) +; stereo: a b -> (empty) ;------------------------------------------------------------------------------- %if POP_ID > -1 @@ -19,7 +19,7 @@ su_op_pop_mono: ;------------------------------------------------------------------------------- ; op_add function: a b -> a+b b -; stereo: a b c d -> a+c b+d c d +; stereo: a b c d -> a+c b+d c d ;------------------------------------------------------------------------------- %if ADD_ID > -1 diff --git a/src/opcodes/effects.asm b/src/opcodes/effects.asm index e344ae3..78b7a52 100644 --- a/src/opcodes/effects.asm +++ b/src/opcodes/effects.asm @@ -10,7 +10,7 @@ SECT_TEXT(sudistrt) EXPORT MANGLE_FUNC(su_op_distort,0) - %ifdef INCLUDE_STEREO_DISTORT + %ifdef INCLUDE_STEREO_DISTORT call su_effects_stereohelper %define INCLUDE_EFFECTS_STEREOHELPER %endif @@ -49,7 +49,7 @@ su_waveshaper: SECT_TEXT(suhold) EXPORT MANGLE_FUNC(su_op_hold,0) - %ifdef INCLUDE_STEREO_HOLD + %ifdef INCLUDE_STEREO_HOLD call su_effects_stereohelper %define INCLUDE_EFFECTS_STEREOHELPER %endif @@ -82,7 +82,7 @@ su_op_hold_holding: SECT_TEXT(sucrush) EXPORT MANGLE_FUNC(su_op_crush,0) - %ifdef INCLUDE_STEREO_CRUSH + %ifdef INCLUDE_STEREO_CRUSH call su_effects_stereohelper %define INCLUDE_EFFECTS_STEREOHELPER %endif @@ -124,7 +124,7 @@ SECT_TEXT(suingain) EXPORT MANGLE_FUNC(su_op_invgain,0) fld dword [INP+su_invgain_ports.invgain] ; g l (r) jnc su_op_invgain_mono - fdiv st2, st0 ; g l r/g + fdiv st2, st0 ; g l r/g su_op_invgain_mono: fdivp st1, st0 ; l/g (r/) ret diff --git a/src/opcodes/sources.asm b/src/opcodes/sources.asm index 4294a89..aba259b 100644 --- a/src/opcodes/sources.asm +++ b/src/opcodes/sources.asm @@ -355,7 +355,7 @@ SECT_DATA(suconst) ; LOADVAL opcode ;------------------------------------------------------------------------------- ; Input: edx : pointer to unit ports -; +; ; Mono version: push 2*v-1 on stack, where v is the input to port "value" ; Stereo version: push 2*v-1 twice on stack ;------------------------------------------------------------------------------- diff --git a/src/opcodes/sources.inc b/src/opcodes/sources.inc index 813d031..ec984e6 100644 --- a/src/opcodes/sources.inc +++ b/src/opcodes/sources.inc @@ -72,7 +72,7 @@ endstruc %define GATE 0x04 %define UNISON2 0x01 %define UNISON3 0x02 ; Warning, UNISON3 and UNISON4 do not work with gate at the moment, as they use the same state variable -%define UNISON4 0x03 +%define UNISON4 0x03 %macro SU_OSCILLAT 8 db %2 @@ -104,7 +104,7 @@ endstruc %endif %if (%8) & UNISON4 > 0 %define INCLUDE_UNISONS - %endif + %endif %endmacro struc su_osc_ports @@ -237,7 +237,7 @@ endstruc %endif %endmacro -%macro SU_RECEIVE 1 +%macro SU_RECEIVE 1 USE_RECEIVE %xdefine CMDS CMDS RECEIVE_ID+%1, %if %1 == STEREO diff --git a/src/sointu.inc b/src/sointu.inc index b9f2705..a2d7d35 100644 --- a/src/sointu.inc +++ b/src/sointu.inc @@ -231,7 +231,7 @@ %else %if %0 != PATTERN_SIZE %error 'All patterns should have the same length!' - %endif + %endif %endif %endmacro @@ -297,7 +297,7 @@ struc su_voice .note resd 1 .release resd 1 .reserved resb (su_unit.size - 8) ; this is done to so the whole voice is 2^n long, see polyphonic player - .workspace resb MAX_UNITS * su_unit.size + .workspace resb MAX_UNITS * su_unit.size .size endstruc ; //----------------------------------------------------------------------------------------