home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / app_a / fxn6501h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  578 b   |  17 lines

  1. buffer  db      41 dup (0)      ; Receives country information.
  2.         .
  3.         .
  4.         .
  5.         mov     ax,6501h        ; Function = get extended info.
  6.         mov     bx,437          ; Code page.
  7.         mov     cx,41           ; Length of buffer.
  8.         mov     dx,-1           ; Default country.
  9.         mov     di,seg buffer   ; ES:DI = buffer address.
  10.         mov     es,di
  11.         mov     di,offset buffer
  12.         int     21h             ; Transfer to MS-DOS.
  13.         jc      error           ; Jump if function failed.
  14.         .
  15.         .
  16.         .
  17.