int main(void)
{
	 USHORT in_stuff;

	 in_stuff = in_port (INPUT_PORT);
	 out_port (OUTPUT_PORT,TEST_DATA);

}
Exemple #2
0
void keyboard_main( ){

  char status;
  char key_code;

  out_port(0x20, 0x20);
  status = in_port(0x64); // io pressed key port for keyboards

  if (status & 0x01) {
    key_code = in_port(0x60); // io status key port for keyboard 
   if(key_code < 0) 
      return;

    if(key_code == 0x1C) { // check if it's the enter key that was pressed
      print_newline(); 
      return;
    }

    VGA[curr_loc++] = keyboard_map[(unsigned char) key_code];
    VGA[curr_loc++] = 0x07;
  }
}
Exemple #3
0
// DEBUG
void
Conf::dump() const
{
    debug(" --- Account ---");
    debug("fname      : " + fname()      );
    debug("in_server  : " + in_server()  );
    debug("in_port    : " + in_port()    );
    debug("smtp_server: " + smtp_server());
    debug("smtp_port  : " + smtp_port()  );
    debug("from       : " + from()       );
    debug("email      : " + email()      );
    debug("user       : "******"pass       : " + pass()       );
}