Esempio n. 1
0
 /// <summary>
 /// Reads from Port A
 /// </summary>
 /// <returns></returns>
 private int INPortA()
 {
     if (DirPortA == PortDirection.Input)
     {
         // read from PSG
         return(PSG.PortRead());
     }
     else
     {
         // Port A is set to output
         // return latched value
         return(Regs[PORT_A]);
     }
 }