uart_init

Updated: April 19, 2023

Initializes the on-chip UART to 8 data bits, 1 stop bit, and no parity (8250 compatible)

Description:

This assembly call initializes the on-chip UART to 8 data bits, 1 stop bit, and no parity (8250 compatible). The function is set up for a 16-bit real-mode environment . It is supported only for x86 platforms.

On entry:

EAX
Baud rate.
EBX
Input clock in Hz (normally 1843200).
ECX
UART internal divisor (normally 16).
DX
UART base port.