I have never really had trouble using skip conditionals before but I'm really confused here..
I have PINx defined as PORTC
and PIN5 as 5.
As I understand it, it will do the debug if its clear. and Jump passed it if set.
sbic PINx,PIN5;( skip if 0 ) rjmp ready out DEBUG, 0 ldi r25, 0xff out DEBUG, r25 ready:
Seems to be skipping in both cases?
just to see if it woudl work and again its getting to my debug in both cases.
The port is set to input and I use sbic later on to roll the data on to a register as a 1 or a 0. like so..
sbic PINx,PIN5 sec rol r18
This works fine. But the above code always read set and never clear. Did I do something wrong?