It takes a lot more steps, you can rotate a 1 bit mask (0x01) x times to get it into place, AND it with reg and then check the zero flag- I'm not going to write up some code on the fly here- I've been doing soo much AVR programming, I'm afraid I'll mix the opcodes! Matt Bennett -----Original Message----- From: Sumiec Jerry Sent: Wednesday, June 14, 2000 9:32 AM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC] Assembly language question... Importance: Low Hello all, Is there a way to make the bit position in a bit oriented command variable? e.g. (I know this doesn't work, but...) ... loop ... ... incf x btfss reg, x ... ... goto loop ... Or something that has a similar effect? I also tried using INDF, but apparently that doesn't work... Thanks, Jerry