AH = D1h: Load Bitmap Data

This function loads a specified bitmap table into the next available position in the dedicated 16-KB bitmap buffer. It also pushes information about the load location, format, size, and cell dimensions onto the System Bitmap stack (BMSTK) described in "Bitmap Stack" on page 3-62. This function does not write to the Display Controller hardware. Once the data is loaded, use Int 10h, Function D3h to make it available for BitBlt operations in CGA Graphics Modes.

If the specified bitmap table is external (not built-in), then ES:SI is a pointer to the supplied bitmap table to be loaded. If this is a font (format 1 or 2), this service assumes that it is presented in the contiguous format, regardless of the requested storage format. Otherwise, the supplied bitmap table must look identical to the desired storage format. If the built-in bitmap table is also a symbol table (ID's 16,32,64,128), the format input is also ignored. The format input for font tables must be either 1 or 2.

Error conditions are identified by the state of the carry, and the value in CL.

This service invokes the Int 06h, Function 05h hook to provide for localization and/or customization of the font data.