Xlat_API_Var_Len Segment, Offset, Length |
The Xlat_API_Var_Len macro copies a specified number of bytes from the protected-mode address to the translation copy buffer and converts the address into a V86-mode address.
Segment
Specifies the segment register containing the selector for the protected-mode address.
Offset
Specifies the register containing the offset for the protected-mode address.
Length
Specifies the register containing the length in bytes of the data to copy.
This macro has no return value.
This service will fail if there is not enough room in the translation buffer to copy the data.
Write String (Interrupt 10h Function 0Eh) is called with the ES:BP register pair pointing to the string to print and the CX register specifying the number of bytes to display. The following script translates this function:
Int_10h_Write_String:
Xlat_API_Var_Len es, bp, cx
Xlat_API_Exec_Init, Xlat_API_Fixed_Len