Jump to content

Change macros.h in Midi-Filter/Processor


 Share

Recommended Posts

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

Edited by daemonik
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...