Questions about applications and software
I've been trying to write something for c++ that will let me control the individual pins on my computer's parallel port, and found that asm/io.h is what I need, but it isn't there!
- Code: Select all
#define base 0x378 /* printer port base address */
#define value 255 /* numeric value to send to printer port */
main(int argc, char **argv)
fprintf(stderr, "Couldn't get the port at %x\n", base), exit(1);
Something like this?
Don't fix it if it ain't broken, don't break it if you can't fix it
- Level 23
- Posts: 19652
- Joined: Sun Feb 11, 2007 7:22 am
- Location: Near Borås Sweden
Users browsing this forum: Cosmo., Google Feedfetcher, lemmingNO3 and 21 guests