-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 20 Oct 2009 22:04:46 +1200 Jinx wrote: [snip] > > Secondly, the ISR (interrupt service routine). This assumes that only > the INT0 interrupt is enabled. No context saving done > > bcf intcon,int0if ;clear the flag which caused the interrupt > > clrf temp ;toggle the edge polarity bit (better way to do this > anyone ?) bsf temp,intedg,w > xorwf option_reg [snip] Since when did BSF accept a third parameter? How about this: MOVLW (1 << INTEDG) XORWF OPTION_REG, F Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: GnuPT 2.7.2 iEYEARECAAYFAkreRrMACgkQXUF6hOTGP7dwiwCfZax1BwtISk0odGz+uio3jM7t 2hUAnAzxdgfGr5jXpidOMYGPco5g9QgK =xamU -----END PGP SIGNATURE----- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist