Questions about applications and software
Before you post please read this
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 21
- Posts: 19710
- Joined: Sun Feb 11, 2007 7:22 am
- Location: Near Borås Sweden
Users browsing this forum: austin.texas, Google [Bot], King Mob, tj-el and 21 guests