Page 176 - C Programming
P. 176

#include <stdio.h>


                                   main()


                                    { char matrix_sw;



                                      clrscr();


                                      do{


                                         outport(0x378,0x0e);


                                         matrix_sw=inport(0x379);


                                         printf("%d \n",matrix_sw);


                                         delay(1000);



                                        }while(!kbhit());


                                    }
   171   172   173   174   175   176   177   178   179   180   181