2000-05-06 21:34:20 +02:00
|
|
|
; File:
|
|
|
|
; nls.asm
|
|
|
|
; Description:
|
|
|
|
; Assembly support routines for nls functions.
|
|
|
|
;
|
|
|
|
; Copyright (c) 1995, 1998
|
|
|
|
; Pasquale J. Villani
|
|
|
|
; All Rights Reserved
|
|
|
|
;
|
|
|
|
; This file is part of DOS-C.
|
|
|
|
;
|
|
|
|
; DOS-C is free software; you can redistribute it and/or
|
|
|
|
; modify it under the terms of the GNU General Public License
|
|
|
|
; as published by the Free Software Foundation; either version
|
|
|
|
; 2, or (at your option) any later version.
|
|
|
|
;
|
|
|
|
; DOS-C is distributed in the hope that it will be useful, but
|
|
|
|
; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
|
|
|
|
; the GNU General Public License for more details.
|
|
|
|
;
|
|
|
|
; You should have received a copy of the GNU General Public
|
|
|
|
; License along with DOS-C; see the file COPYING. If not,
|
|
|
|
; write to the Free Software Foundation, 675 Mass Ave,
|
|
|
|
; Cambridge, MA 02139, USA.
|
|
|
|
;
|
|
|
|
; $Id$
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
%include "segs.inc"
|
|
|
|
|
2002-12-09 01:17:15 +01:00
|
|
|
segment _TEXT
|
2001-03-21 03:56:26 +01:00
|
|
|
global _reloc_call_CharMapSrvc
|
2002-12-09 01:17:15 +01:00
|
|
|
extern _DosUpChar:wrt TGROUP
|
2000-05-06 21:34:20 +02:00
|
|
|
;
|
|
|
|
; CharMapSrvc:
|
|
|
|
; User callable character mapping service.
|
|
|
|
; Part of Function 38h
|
|
|
|
;
|
2001-03-21 03:56:26 +01:00
|
|
|
_reloc_call_CharMapSrvc:
|
2002-08-02 23:55:14 +02:00
|
|
|
|
|
|
|
Protect386Registers
|
2000-05-06 21:34:20 +02:00
|
|
|
push ds
|
|
|
|
push es
|
2002-10-22 04:40:19 +02:00
|
|
|
; push bp
|
|
|
|
; push si
|
|
|
|
; push di
|
2000-05-06 21:34:20 +02:00
|
|
|
push dx
|
|
|
|
push cx
|
|
|
|
push bx
|
|
|
|
|
2000-08-06 07:50:17 +02:00
|
|
|
push ax ; arg of _upChar
|
2002-10-22 04:40:19 +02:00
|
|
|
; push ax
|
2001-03-21 03:56:26 +01:00
|
|
|
mov ax,DGROUP
|
2000-08-06 07:50:17 +02:00
|
|
|
mov ds, ax
|
2002-10-22 04:40:19 +02:00
|
|
|
; pop ax
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-03-19 05:50:56 +01:00
|
|
|
call _DosUpChar
|
2000-05-08 06:30:00 +02:00
|
|
|
;add sp, byte 2 // next POP retrieves orig AX
|
|
|
|
|
|
|
|
pop bx
|
|
|
|
mov ah, bh ; keep hibyte untouched
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
pop bx
|
|
|
|
pop cx
|
|
|
|
pop dx
|
2002-10-22 04:40:19 +02:00
|
|
|
; pop di
|
|
|
|
; pop si
|
|
|
|
; pop bp
|
2000-05-06 21:34:20 +02:00
|
|
|
pop es
|
|
|
|
pop ds
|
2002-08-02 23:55:14 +02:00
|
|
|
Restore386Registers
|
2000-05-06 21:34:20 +02:00
|
|
|
retf ; Return far
|