Last change
on this file since 91942 was 82968, checked in by vboxsync, 5 years ago |
Copyright year updates by scm.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.7 KB
|
Line | |
---|
1 | ; $Id: fmemcpy.asm 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; Compiler support routines.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2012-2020 Oracle Corporation
|
---|
8 | ;
|
---|
9 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
11 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | ; General Public License (GPL) as published by the Free Software
|
---|
13 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | ;
|
---|
17 |
|
---|
18 |
|
---|
19 | ;*******************************************************************************
|
---|
20 | ;* Exported Symbols *
|
---|
21 | ;*******************************************************************************
|
---|
22 | public _fmemcpy_
|
---|
23 |
|
---|
24 |
|
---|
25 | .8086
|
---|
26 |
|
---|
27 | _TEXT segment public 'CODE' use16
|
---|
28 | assume cs:_TEXT
|
---|
29 |
|
---|
30 |
|
---|
31 | ;;
|
---|
32 | ; memcpy taking far pointers.
|
---|
33 | ;
|
---|
34 | ; cx, es may be modified; si, di are preserved
|
---|
35 | ;
|
---|
36 | ; @returns dx:ax unchanged.
|
---|
37 | ; @param dx:ax Pointer to the destination memory.
|
---|
38 | ; @param cx:bx Pointer to the source memory.
|
---|
39 | ; @param sp+2 The number of bytes to copy (dw).
|
---|
40 | ;
|
---|
41 | _fmemcpy_:
|
---|
42 | push bp
|
---|
43 | mov bp, sp
|
---|
44 | push di
|
---|
45 | push ds
|
---|
46 | push si
|
---|
47 |
|
---|
48 | mov es, dx
|
---|
49 | mov di, ax
|
---|
50 | mov ds, cx
|
---|
51 | mov si, bx
|
---|
52 | mov cx, [bp + 4]
|
---|
53 | rep movsb
|
---|
54 |
|
---|
55 | pop si
|
---|
56 | pop ds
|
---|
57 | pop di
|
---|
58 | mov sp, bp
|
---|
59 | pop bp
|
---|
60 | ret
|
---|
61 |
|
---|
62 |
|
---|
63 | _TEXT ends
|
---|
64 | end
|
---|
65 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.