1
; Copyright (C) 2000 MySQL AB
3
; This library is free software; you can redistribute it and/or
4
; modify it under the terms of the GNU Library General Public
5
; License as published by the Free Software Foundation; version 2
8
; This library is distributed in the hope that it will be useful,
9
; but WITHOUT ANY WARRANTY; without even the implied warranty of
10
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
; Library General Public License for more details.
13
; You should have received a copy of the GNU Library General Public
14
; License along with this library; if not, write to the Free
15
; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18
TITLE Optimized strxmov for MSDOS / Intel 8086
35
les di,DWORD PTR ss:[bx] ; dst
42
jnz start_str ; Not last
47
lds si,DWORD PTR ss:[bx]
52
mov byte ptr es:[di],0 ; Force end null (if no source)
54
mov ax,di ; Return ptr to last 0
73
mov EDX,EBX ; Save EBX
74
mov ECX,ESI ; Save ESI
76
mov EDI,8[EBP] ; Get destination
77
lea EBX,8[EBP] ; Get adress to first source - 4
84
dec EDI ; Don't copy last null
90
mov byte ptr [EDI],0 ; Force last null
92
mov EAX,EDI ; Return ptr to null