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"
|
2004-05-30 21:31:07 +02:00
|
|
|
%include "stacks.inc"
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2003-03-12 23:43:53 +01:00
|
|
|
segment HMA_TEXT
|
2001-03-21 03:56:26 +01:00
|
|
|
global _reloc_call_CharMapSrvc
|
2003-06-15 18:21:26 +02:00
|
|
|
extern _DosUpChar
|
|
|
|
extern _DGROUP_
|
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
|
2003-06-15 18:21:26 +02:00
|
|
|
mov ds,[cs:_DGROUP_]
|
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
|