For example:

 

Output_Byte

= 01010101b

Line_Number

= 3

Status

= 1

00000001b

(1 decimal)

 

 

shift-right 3

(Line_Number) =

00001000b

 

 

XOR

11111111b

 

 

 

11110111b (mask 1)

 

AND

01010101b

(Output_Byte)

00000001b

(Status)

01010101b

 

shift-right 3

(Line_Number) = OR

00001000b

(mask 2)

01011101b (New Output_Byte)

For an example of an application that uses these functions, look at the source code in PPIO.PAS.

PPIO2899 Manual

17

B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104

Page 19
Image 19
B&B Electronics PPIO manual Xor