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 21
- Posts: 19703
- Joined: Sun Feb 11, 2007 7:22 am
- Location: Near Borås Sweden
Users browsing this forum: Deno, jama, kevins_76, roostertree and 26 guests