Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 6507h get double-byte character set dos 4.0+</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 6507h          Get Double-Byte Character Set                DOS 4.0+

    Returns the address of a buffer containing values that specify the
    valid ranges for lead bytes in the given double-byte character set
    (DBCS).

        Entry   AX    = 6507h
                BX    = Code page ID (0FFFFh = current code page)
                CX    = Size of buffer (min. 5)
                DX    = Country code (0FFFFh = current country)
                ES:DI = Pointer to country info buffer

        Return  Buffer updated
                or
                AX = Error code, if CF is set
                     | 01h Invalid function (CX < 5)
                     | 02h File not found

    ------------------------------------------------------------------

    Format of country info buffer:
        Offset  Size    Description
        00h     1       Info-ID (= 07h)
        01h     4       32-bit address of DBCS table

    The DBCS values start with a 16-bit value that
    specifies the length of the table. The remainder of the table
    consists of pairs of bytes with each pair specifying the low and
    high character values for a valid range of lead byte values.

See Also: 6501h 6601h 6602h CodePageIDs CountryCodes

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson