Hacker News new | ask | show | jobs
by skissane 525 days ago
> There are 256 possible IO ports in x86

65,536 IO ports not 256. Not counting memory mapped IO ports whose number is only limited by the physical address space

> which afaik can be mapped arbitrarily by manufacturers

Pretty much, but some of the assignments IBM picked for the original IBM PC are a de facto standard. However, as newer machines lose more and more legacy peripherals and controllers, fewer and fewer of those original ports still exist. Thats said, the article mentions using the POST port (0x80) which is one of those original port numbers.

1 comments

While you can theoretically talk to 65,536 ports, a lot of old hardware only wired up the lowest 10 or so bits of the address space. So the parallel port at 0x378 might also be accessible at 0x1378, 2378... F378.