The following will OR A with X COM A ; Complement A LD V , A ; Store A in register V LDI A , X ; Put Value into A COM A ; Complement A AND A , V ; AND A with V COM A ; Complement A The result is given in A regards, Simon Harrison [ This message was edited by: sjh on 12-11-2003 16:24 ]