コード例 #1
0
 public void ECout(byte b)
 {
     CasMotorOnLatch.LatchIf(b.IsBitSet(1));
     vidWideCharLatch.LatchIf(b.IsBitSet(2));
     vidAltCharLatch.LatchIf(!b.IsBitSet(3)); // seems to be an error in the Tech Ref manual that says 1=enable alt set
     extIoIntLatch.LatchIf(b.IsBitSet(4));
     vidWaitLatch.LatchIf(b.IsBitSet(5));
 }
コード例 #2
0
 public void Serialize(System.IO.BinaryWriter Writer)
 {
     RtcIntLatch.Serialize(Writer);
     FdcNmiLatch.Serialize(Writer);
     FdcMotorOffNmiLatch.Serialize(Writer);
     ResetButtonLatch.Serialize(Writer);
     ioIntLatch.Serialize(Writer);
     CasMotorOnLatch.Serialize(Writer);
     CasRisingEdgeIntLatch.Serialize(Writer);
     CasFallingEdgeIntLatch.Serialize(Writer);
     rs232ErrorIntLatch.Serialize(Writer);
     rs232ReceiveIntLatch.Serialize(Writer);
     rs232XmitIntLatch.Serialize(Writer);
 }
コード例 #3
0
 public bool Deserialize(System.IO.BinaryReader Reader, int DeserializationVersion)
 {
     try
     {
         return
             (RtcIntLatch.Deserialize(Reader, DeserializationVersion) &&
              FdcNmiLatch.Deserialize(Reader, DeserializationVersion) &&
              FdcMotorOffNmiLatch.Deserialize(Reader, DeserializationVersion) &&
              ResetButtonLatch.Deserialize(Reader, DeserializationVersion) &&
              ioIntLatch.Deserialize(Reader, DeserializationVersion) &&
              CasMotorOnLatch.Deserialize(Reader, DeserializationVersion) &&
              CasRisingEdgeIntLatch.Deserialize(Reader, DeserializationVersion) &&
              CasFallingEdgeIntLatch.Deserialize(Reader, DeserializationVersion) &&
              rs232ErrorIntLatch.Deserialize(Reader, DeserializationVersion) &&
              rs232ReceiveIntLatch.Deserialize(Reader, DeserializationVersion) &&
              rs232XmitIntLatch.Deserialize(Reader, DeserializationVersion));
     }
     catch
     {
         return(false);
     }
 }