Naru,
The BIOS RAM data area contains the I/O base address of each COM port, up to 4 ports. The BIOS RAM data area is located at memory address 40:0000 (Segment 40, Offset 0). For example, on my machine, the first 8 bytes starting from address 40:0000 are: F8 03 F8 02 E8 03 E8 02. So, starting with COM1, the base addresses are: 3F8 2F8, 3E8, and 2E8.