Re: If (port[MSR] and $10)=$10 Then Inc(value);

2004-02-18 Thread LarsRoe
'and' is being used as a bitwise operator, not Boolean. So we are testing for the single bit at value 16 (0x10). LabVIEW also works the same way with the AND primitive et al. when you use integers as arguments. You should be able to use the Port I/O VIs to do port reading/writing.

If (port[MSR] and $10)=$10 Then Inc(value);

2004-02-18 Thread Bupe
; Begin value:=0; Port[MCR]:=1; { set CS down } For count:=0 to 7 Do Begin{ do the bit value eading 7 times } value:=value SHL 1;{ value=2*value } Port[LCR]:=64; { clock line up } If (port[MSR] and $10)=$10 Then Inc