Jim C, , (?) "" , ///etc ( IO), . IO, , CPU , "" .
:
//Start of Program
// Here the CPU scan starts with X1 closed, X2 closed in the IO image
LD X1 //(X1 = closed)
AND X2 //(X2 = closed)
OUT Y1 //(Y1 will be set high/closed)
// **suddenly X1 opens**
//(using LDI here to denote "immediate")
LDI X1 //(open - reading true status)
AND X2 //(closed)
OUT Y1 //(Y1 will now open)
LD X1 //(reading from image = closed, still)
AND X2 //(closed)
OUT Y1 //(Y1 will close again)
END of Program
(X1 = ), Y1 .
, , , , . , , . , -, .
ps: "LDI" , , . , Koyos STR () LD STRI ( ).