uart_string

Updated: April 19, 2023

Output a NULL-terminated string to the UART (x86 only)

Synopsis:

#include <sys/platform.h>
#include <sys/startup.h>
        

Arguments:

None.

Description:

This assembly call outputs a NULL-terminated string to the UART. The function is set up for a 16-bit real-mode environment. It is supported only for x86 platforms.

On entry:

DX
UART base port address, return address, string.

For example:

mov        UART_BASE_PORT, %dx
call       uart_string
.ascii     "string\r\n"
...