Jump to content

Recommended Posts

Posted

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...