Example #1
0
 private static void WaitForReady()
 {
     do
     {
         IOPort.Outb((byte)cmos.Address, 10);
     }while ((IOPort.Inb((byte)cmos.Data) & 0x80) != 0);
 }
Example #2
0
 private static void WaitForWriteReady(Port PORT)
 {
     while ((IOPort.Inb((ushort)(PORT + (ushort)Cmd.COM_ModemStatus)) & 0x20) == 0x0)
     {
         Thread.Sleep(15);
     }
 }
Example #3
0
 private static byte RTC_Register(byte aNo)
 {
     IOPort.Outb((byte)cmos.Address, aNo);
     return(IOPort.Inb((byte)cmos.Data));
 }