-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 cdb wrote: > I'm having one of my major off days! > > I'm trying to invert the contents of an array, and am going all over > the place to achieve what I think should be only a couple of lines of > 'c' code. > > I have a constant array containing font pixel data for a graphics LCD. > > I access it by, > > BYTE *fnt; > > fnt = GLCD_font_set(ch); > > No problems here. > > However this does not work > > *fnt = *fnt ^ 0xFF; '' take contents of fnt and invert, place back in > fnt. > > Nor does bracketing fnt's, contents do not alter. > Try *fnt ^= 0xFF; - -- Brendan Gillatt | GPG Key: 0xBF6A0D94 brendan {a} brendangillatt (dot) co (dot) uk http://www.brendangillatt.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFKve77HEhZ5Ws5poERAk5fAJ9q6zYQ2ocrHcA2Ft8tExuwdcICCgCdG8ob UMHrXUlTslXRoz1WCi5ZHjc= =SZba -----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