Hi, folks! What about XORLW 0x'FF' ?? It complements each bit in W.... Bye! >Tony KŸbeck has written: >Hi, >this is not do-able ( like you have written ). >COMF W will be compiled as: >COMF INDF which means the ram adress pointed at by FSR >W will be replaced by '0' by the compiler which inturn is the ramadress >for the INDF register, which uses the FSR to point to an memory location >;-) >are we having fun yet ? ( just kidding :-) ) >To do an COMF on the W reg without using temp ram I belive was mentioned >on the list no so long ago ( this month ), cant really remeber the >'best' way so You better do a search to find it. >/Tony > > >Tony KŸbek, Flintab AB >ΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣ >E-mail: tony.kubek@flintab.com >ΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣΣ > ---------------- o --------------------- Name: Alejandro Lavarello ICQ: 35 764 596 alejol e-mail: alejol@adinet.com.uy Address: Zapican 2560 apto 308 City: Montevideo Country: Uruguay Work title: Electronic Technician Work organization: Intendencia Municipal de Montevideo Work address: Palacio Municipal - Subsuelo- Seccion Senales Luminosas Work e-mail: semaforos@imm.gub.uy Work tel/fax: +598 2 9011930 ----------------- o --------------------