]>
wirehaze git hosting - MS-DOS.git/blob - v4.0/src/MAPPER/DBCS.ASM
4 title CP
/DOS DosGetDBCSEv
6 dosxxx
segment byte public 'dos'
7 assume
cs:dosxxx
,ds:nothing
,es:nothing
,ss:nothing
9 ;**********************************************************************
11 ;* MODULE: DosGetDBCSEv
16 ;* PUSH@ DWORD Countrycode
17 ;* PUSH@ DWORD Memorybuffer
19 ;* MODULES CALLED: none
21 ;*********************************************************************
30 DataAreaPtr dd ?
; Data buffer pointer
31 CountryCodePtr dd ?
; Country code pointer
32 DataAreaLength dw ?
; Length of data area
37 Enter DosGetDBCSEv
;AN000; push registers
39 ; Get the country, so we can then get the country case map stuff
41 ; lds si,[bp].CountryCodePtr
44 ; Note: do the country selection later (maybe never)
46 mov ax,6300H
;AN000; get DBCS vector
47 INT 21H
;AN000; DS:SI-->vector area
51 les di,[bp].DataAreaPtr
;AN000; ES:DI-->return buffer
52 mov cx,[bp].DataAreaLength
;AN000;
54 mov al,ds:[si] ;AN000;
55 mov es:[di],al ;AN000;
63 Mexit
;AN000;pop registers
65 ret size
str - 6 ;AN000; return