i finished from my progam to control 8 relays using vb6 and timer
im control every single relay alone by time
but i had one problEme on level BITWISE
WHEN I WANTED TO SWITCH OFF ONLY
for example
out &h378, not 1 and 254
out &h378, not 2 and 254
out &h378,not 4 and 254
out &h378,not 8 and 254
out &h378,not 16 and 254
out &h378,not 32 and 254
out &h378,not 64 and 254
out &h378,not 128 and 254
this is my problem why i cant switch only one out without others out
not
for switch on not problem for me
out &h378,1
out &h378,2 or 1
out &h378,4 or 2 or 1
out &h378,8 or 4 or 2 or 1
out &h378,16 or 8 or 4 or 2 or 1
out &h378,32 or 16 or 8 or 4 or2 or 1
out &h378,64 or 32 or 16 or 8 or 4 or 2 or 1
out &h378,128 or 64 or 32 or 8 or4 or 2 or 1
please help me
thanks