AH = 13h: Write Teletype String
This function transfers a string to the video buffer for the active page starting at the specified cursor position. There are 4 modes of operation controlled by the two least significant bits of AL. If it is set, Bit-0, Cursor_Move, causes the cursor to be updated. When Bit-1, Attributes_Present, is set, it specifies that the string contains alternating characters and attributes. When clear, Bit-1 specifies that the string consists of characters only. This function uses the Write Teletype Character mode so that BELL, CR, LF, and BS are treated as commands and not written into the video buffer.
- Input: AH = 13h
AL = Mode
00h - String shares attribute in BL, cursor unchanged.
01h - String shares attribute in BL, cursor advanced
02h - Each char has attribute, cursor unchanged
03h - Each char has attribute, cursor advanced
BH = Page (For Text Modes)
BL = String attribute byte (for AL=00h or 01h only)
(Bit 7 set means XOR pixel data if in graphics mode)
CX = Length of string
DH = y (Starting character Row address)
DL = x (Starting character column address)
ES:BP = Pointer to start of string
Format of string is:
Char, Char, ... or
Char, Attr, Char, Attr, ...
- Output: None (display memory is updated)
- Error conditions: None
- Registers modified: AX