INT 10 - FRIEZE - API(Application Program[ming] Interface) The defined set of calls which a program may make to interact with or request services of the operating system or environment under which it is running. Because the inputs and outputs of the calls are well-defined, a program using the API can continue using the identical calls even if the internal organization of the program providing the API changes. AH = 4Bh CL = function 00h (v6.x-) print window AL = mode 00h character 01h normal 02h sideways 01h load window ES:BX -> ASCIZA NUL-terminated ASCII string. The ASCIZ string "ABC" consists of the four bytes 41h, 42h, 43h, and 00h. Unless otherwise specified, maximum lengths given in the interrupt list do not include the terminating NUL. filename from which to read 02h save window ES:BX -> ASCIZA NUL-terminated ASCII string. The ASCIZ string "ABC" consists of the four bytes 41h, 42h, 43h, and 00h. Unless otherwise specified, maximum lengths given in the interrupt list do not include the terminating NUL. filename to which to write 03h set print width AL = width in 1/4 inches 04h set print height AL = height in 1/4 inches 05h reserved 06h set left margin AL = printout margin in 1/4 inches 07h set window size ES:BX -> four-WORD structure with Xmin, Ymin, Xmax, Ymax 08h reserved 09h set patterns ES:BX -> 16-BYTE vector of screen->printer color correspondnces 0Ah get patterns ES:BX -> 16-BYTE buffer for color correspondences 0Bh set mode AL = mode 0Ch (v7.41) ??? AL = ??? 00h ??? (calls original INT 05) else ??? 0Dh (v7.41) ??? AL = ??? 00h ??? (calls original INT 05) else ??? 0Eh (v7.41) ??? ??? 0Fh get window ES:BX -> four-WORD buffer for Xmin, Ymin, Xmax, Ymax 10h set print options ES:BX -> printer options in same format as FRIEZE cmdline 11h initialize ES:BX -> three-WORD array from CARDS.DAT for HRes, VRes, code 12h (v7.41) ??? ??? 13h (v7.41) ??? ??? 14h get version Return: AH = major version (00h if FRIEZE version before 7) AL = minor version 15h set parameters ES:BX -> parameter table (see #00068) 16h get parameters ES:BX -> buffer for parameter table (see #00068) 17h get printer resolution ES:BX -> 12-WORD table for six horizontal/vertical resol pairs 18h (v8.0 only) reserved 50h (v7.41) get ??? Return: AX = ??? 51h (v7.41) get ??? Return: ES = ??? (seen 2348h) AX = ??? (seen 8432h) Return: AX = status (see #00067) SeeAlso: AH=0Fh/SI=F123h (Table 00067) Values for FRIEZE function status: 00h successful 01h user aborted printout with ESC 02h reserved 03h file read error 04h file write error or printer error 05h file not found 06h invalid header (not an image or wrong screen mode) or can't create file 07h file close error 08h disk error 09h (v7.0+) printer error 0Ah invalid function 0Bh (v7.0+) can't create file 0Ch (v7.0+) wrong video mode Format of FRIEZE parameter table: Offset Size Description (Table 00068) 00h WORD top margin (1/100 inch) 02h WORD left margin (1/100 inch) 04h WORD horizontal size (1/100 inch) 06h WORD vertical size (1/100 inch) 08h WORD quality/draft mode 00h draft mode 01h quality mode 02h use horizontal/vertical resolution for output resolution 0Ah WORD printer horizontal resolution (dots per inch) 0Ch WORD printer vertical resolution (dots per inch) 0Eh WORD reserved (FFFFh) Note: any field which should remain unchanged may be filled with FFFFh