home .. forth .. colorforth mail list archive ..

[colorforth] rgb


Hello,

I'm curious about the rgb function.

rgb: ror  EAX, 8
    shr  AX, 2
    ror  EAX, 6
    shr  AL, 3
    rol  EAX, 6+5
    and  EAX, 0f7deh
    ret

Is the 'and  EAX, 0f7deh' necessary? It seems that this would limit the
precision of colors, at least for those primitives built into the
kernel. I was just wondering the motivation for doing this. Taking it out
didn't seem to have a negative effect.

Mark

------------------------

To Unsubscribe from this list, send mail to Mdaemon@xxxxxxxxxxxxxxxxxx with:
unsubscribe ColorForth
as the first and only line within the message body
Problems   -   List-Admin@xxxxxxxxxxxxxxxxxx
Main ColorForth site   -   http://www.colorforth.com