| 
 |  | 
                            Exchange Memory Region                            
  
    | 
       Input  | 
    
       Output  | 
   
  
    | 
       AX  | 
    57h | 
    01h | 
    Error
      Code | 
      | 
    AX | 
   
  
    | 
       BX  | 
      | 
      | 
      | 
      | 
    BX | 
   
  
    | 
       CX  | 
      | 
      | 
      | 
      | 
    CX | 
   
  
    | 
       DS:SI  | 
     Ptr
      to Source/Dest data | 
      | 
      | 
    DX | 
   
      Exchanges data between  two memory areas. Includes exchanges
     between paged and non-paged areas, or between  two different
     paged areas.
     Notes:
     *  The request  block is a structure with the following format:
        dword region length in bytes byte  0=source  in conventional
        memory 1=source in expanded memory word  source  handle word
        source offset in  page  or selector word source logical page
        (expanded)  or  selector  (conventional)  byte  0=target  in
        conventional memory 1=target  in expanded memory word target
        handle word target offset  in  page  or selector word target
        logical page (expanded) or selector (conventional)
     *  Expanded memory allocated to a  handle is considered to be a
        linear array, starting from logical page  0  and progressing
        through  logical  page  1, 2, ... n, n+1, ... up to the last
        logical page in the handle. |