![Picture](/uploads/1/8/3/5/18358031/1785554.jpg?385)
We used The Turing programming language to reads the input status of the parallel port, and to write to the parallel port as integers. However, to determine the status of a specific pin of the input of the parallel port we needed to isolate that specific pin. The table on the left shows the way we isolate input pins for the purpose of decision making. We take the input from the pin like below:
S3 := ((input div 8) mod 2)
S4 := ((input div 16) mod 2)
S5 := ((input div 32) mod 2)
S6 := ((input div 64) mod 2)
S3 := ((input div 8) mod 2)
S4 := ((input div 16) mod 2)
S5 := ((input div 32) mod 2)
S6 := ((input div 64) mod 2)