COMX - One's Complement X ;flags(N,Z,C)

COMX ;X < $FF - X ;(INH) inherent addressing

Replaces the contents of index register with its one's complement.