#include<stdio.h>
#include<stdlib.h>
#include<dos.h>
int main(void){
unsigned int val=0x00;
unsigned int input;
int port=0x378; //Direccion del puerto paralelo
system("cls");
do{
printf("Ingresa un número entre 0 y 255. Para salir ingrese 256\n");
scanf("%d", &val);
outportb(port,val); //Valor del puerto
delay(1000);
printf("\n");
system("PAUSE");
}while(val<256);
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.