jb Posted October 20, 2008 Report Share Posted October 20, 2008 I installed the new programming platform, and the examples compile fine. Now, I want to make use of the 32x32 scanmatrix code of QBAS (see http://www.midibox.org/forum/index.php/topic,8557.0.html) within the new programming platform. The gp complains about a lot of syntax errors and refers to lines with IFSET/IFCLR. I have learned from the forum that with the change to gp these macro's are not supported anymore, but I cannot find how to change them. Hopefully, someone can explain me this.An example of the problematic code is: ;; branch depending on current DIN value IFSET SM_SRIO_PORT_DIN, SM_SRIO_PIN_DIN, rgoto SM_BUTTON_HANDLER_SHIFT_1SM_BUTTON_HANDLER_SHIFT_0 ;; do nothing if DIN pin already 0 IFCLR INDF0, bit_number, rgoto SM_BUTTON_HANDLER_SHIFT_ContN.B. I have a lot of experience with C and can understand a bit of asm (and make simple modifications). Quote Link to comment Share on other sites More sharing options...
jimhenry Posted October 21, 2008 Report Share Posted October 21, 2008 ;; branch depending on current DIN value BRA_IFSET SM_SRIO_PORT_DIN, SM_SRIO_PIN_DIN, ACCESS, SM_BUTTON_HANDLER_SHIFT_1 SM_BUTTON_HANDLER_SHIFT_0 ;; do nothing if DIN pin already 0 BRA_IFCLR INDF0, bit_number, ACCESS, SM_BUTTON_HANDLER_SHIFT_Cont Quote Link to comment Share on other sites More sharing options...
jb Posted October 21, 2008 Author Report Share Posted October 21, 2008 thanks, in an old example app I discovered the definitions of the macro's. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.