mov bx, Handle ;handle of device
mov ch, Category ;device category
mov cl, 4Dh ;End Code-Page Prepare
mov ax, 440Ch ;IOCTL for Character Device
int 21h
jc error_handler ;carry set means error
End Code-Page Prepare (Function 440Ch Minor Code 4Dh) tells a device driver that code-page preparation is complete.
Handle
Identifies the device the code pages are set for.
Category
Specifies the type of device. This parameter must be one of the following values:
Value | Device |
01h | Serial device |
03h | Console (screen) |
05h | Parallel printer |
If the function is successful, the carry flag is clear. Otherwise, the carry flag is set.
End Code-Page Prepare completes code-page preparation started by using Start Code-Page Prepare (Function 440Ch Minor Code 4Ch).
Function 440Ch Minor Code 4Ah Select Code Page
Function 440Ch Minor Code 4Ch Start Code-Page Prepare
Function 440Ch Minor Code 6Ah Query Selected Code Page
Function 440Ch Minor Code 6Bh Query Code-Page Prepare List