[Gllug] XOR

Andrew Halliwell ah at gnd.com
Thu Apr 15 16:33:17 UTC 2004


And verily, didst Ashley Evans announce to the hordes:
> So, what else can this bit of binary operator magic be used for?

Oh, quite a bit due to its very nature.
Sprites for example, have a "mask" and the actual sprite graphic.
(The mask is the reverse of the sprite, XOR can be used to overlay the
sprite on a background by using the sprite mask)

Loads of other uses in all areas of computeryness. It's hardly "new" though,
surprised you'd not come across it before. 

Even the sinclair zx spectrum has "OVER 1" mode, which turned on XOR for
screen writing. (Used in that case for games written in BASIC, and of
course, for things like underline, creating umlauts from 2 normal
characters, u and " iirc, etc)


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list