HI
I want to build a this little helper Midifilter to convert Midi CC messages to Sysex-strings for the Waldorf Microwave1.
I stumbled on the IFSET and IFCLR macros in macros.h which are not read correctly by GPASM. These macros have been changed to a new version by thorsten on most apps but not for the Midifilter.
As I understand, only thing to do is to replace the macros by the new ones and change the sourcecode for the new macros?
But why do BTFSC and BTFSS need 3 arguments in these macros?
(reg= Register-Name/Number; bit=Bit-Name/Number; but what’s the argument reg_a???)
cheers, Nick
BRA_IFSET MACRO reg, bit, reg_a, label
btfsc reg, bit, reg_a
bra label
ENDM
BRA_IFCLR MACRO reg, bit, reg_a, label
btfss reg, bit, reg_a
bra label
ENDM
GOTO_IFSET MACRO reg, bit, reg_a, label
btfsc reg, bit, reg_a
goto label
ENDM
GOTO_IFCLR MACRO reg, bit, reg_a, label
btfss reg, bit, reg_a
goto label
ENDM
CALL_IFSET MACRO reg, bit, reg_a, label
btfsc reg, bit, reg_a
call label
ENDM
CALL_IFCLR MACRO reg, bit, reg_a, label
btfss reg, bit, reg_a
call label
ENDM
RCALL_IFSET MACRO reg, bit, reg_a, label
btfsc reg, bit, reg_a
rcall label
ENDM
RCALL_IFCLR MACRO reg, bit, reg_a, label
btfss reg, bit, reg_a
rcall label
ENDM