give the appropriate DEBUG commands that will find out the number of COM and LPT(printer) ports installed in your PC. list their port address?
it may seem like a homework problem, but it is not.i am studying microprocessors,and i am not getting anything, so i have to learn by decoding the solutions.
so kindly post the answers.. thanks.
Look at the BIOS data segment
0040:0000to0040:0300, which contains lots of useful configuration stuff. Unless you have an operating system that overwrites that memory, but that’s not probable.For example the amount of free memory in kilobytes as a
uint16_tat0040:0013(uh oh, unaligned memory ;)). Some memory cells below are the port numbers forlpt*andcom*.