Hello midiboxers! I am really getting envolved in midiboxing and having enjoyed all the physical hardware developement side of it, I'm having some fun with Coding. What I am triying to do here is to Light a red led when an encoder approaches its maximum absolute value (above 100). I am using enc_example2_v1_3Â as a skelletton for my little project. I noticed that Just before sending the encoder value (third midi byte), MIOS moves it from TMP1 to W I assumed I could insert my code here and compare W with the WARNING_LEVEL... Here's what I'm wrote: ;; send the third MIDI byte movf TMP1, W ; value from 0x00 to 0x7f movlw 0x64 ; ABOVE THIS VALUE,LIGHT WARNING LED movwf WARNING_LEVEL movf TMP1, W ; value from 0x00 to 0x7f CPFSGT WARNING_LEVEL; COMPARE ENCODER VALUE WITH WARNING_LEVEL movlw 0x14 CALL MIOS_DOUT_PinSet1; LIGHT WARNING LED Call MIOS_MIDI_TxBufferPut At the moment, PINSET1 is being called every time I move the encoder. Can I make CPFSGT skip two lines? Better still, can I use something like: IF w>100 then movlw 0x14 CALL MIOS_DOUT_PinSet1 end if Thanks for any suggestions! Best regards, Alex