Jump to content

new platform and IFSET/IFCLR


jb
 Share

Recommended Posts

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_1

SM_BUTTON_HANDLER_SHIFT_0

;; do nothing if DIN pin already 0

IFCLR INDF0, bit_number, rgoto SM_BUTTON_HANDLER_SHIFT_Cont

N.B. I have a lot of experience with C and can understand a bit of asm (and make simple modifications).

Link to comment
Share on other sites

       ;; 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

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...