I am designing a program to work with a circuit I created. I'm just using a 16-bit base DOS compiler because I don't understand the CreateFile() function yet...here's the code:
When the outportb() function is run, what will it send to the 0x378 location? Say a=0....Would it send 0x6F to the x378 location? I know the code works with printf...it prints out the right array values...I just don't know if I can use a combination of letters, then a variable like that...?
printf("\n\n\tDisplay Number (0 to 9): ");
if ((a>9) || (a<0))
printf("\n\tInvalid Number! (0 to 9 Only)");
Last question...would using an array like that work faster than just using a switch statement and making a case for each number?