Int 10H [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA] Function 13H (19) Write string in teletype mode

Transfers a string to the video buffer for the currently active display, starting at the specified position.

Call with:

AH = 13H

AL = write mode

0 attribute in BL; string contains character codes

only; and cursor position is not updated after

write

1 attribute in BL;

string contains character codes only; and cursor

position is updated after write

2 string contains alternating character codes and

attribute bytes; and cursor position is not

updated after write

3 string contains alternating character codes and

attribute bytes; and cursor position is updated

after write

BH = page

BL = attribute, if AL = 00H or 01H

CX = length of character string

DH = y coordinate (row)

DL = x coordinate (column)

ES:BP = segment:offset of string

Returns:

Nothing

Notes:

This function is not available on the original IBM PC or PC/XT unless an EGA video adapter (which contains its own ROM BIOS) is installed.

This function may be thought of as an extension to Int 10H Function 0EH. The control characters bell (07H), backspace (08H), line feed (0AH), and carriage return (0DH) are recognized and handled appropriately.