02-22-2011, 04:52 PM
slenkar Wrote:And that's ok.Code:ink 0
DIM a as Ubyte = 5
PRINT at selecty,selectx;a bAND 1
this just prints black ones to the screen
bAND is an OPERATOR. It calculates (a AND 1). The difference with normal AND is that, AND uses boolean logic (0 = False, any other value = True).
bAND is for BINARY (or BITWISE) operations (hence the 'b' Prefix). You have bAND, bOR, bXOR and bNOT.
For what you want, do as LCD suggested:
Code:
PRINT AT y, x; OVER 1; PAPER 8; INK value; " "