xref: /aoo41x/main/basic/source/runtime/wnt.asm (revision e76eebc6)
1*e76eebc6SAndrew Rist;**************************************************************
2*e76eebc6SAndrew Rist;
3*e76eebc6SAndrew Rist;  Licensed to the Apache Software Foundation (ASF) under one
4*e76eebc6SAndrew Rist;  or more contributor license agreements.  See the NOTICE file
5*e76eebc6SAndrew Rist;  distributed with this work for additional information
6*e76eebc6SAndrew Rist;  regarding copyright ownership.  The ASF licenses this file
7*e76eebc6SAndrew Rist;  to you under the Apache License, Version 2.0 (the
8*e76eebc6SAndrew Rist;  "License"); you may not use this file except in compliance
9*e76eebc6SAndrew Rist;  with the License.  You may obtain a copy of the License at
10*e76eebc6SAndrew Rist;
11*e76eebc6SAndrew Rist;    http://www.apache.org/licenses/LICENSE-2.0
12*e76eebc6SAndrew Rist;
13*e76eebc6SAndrew Rist;  Unless required by applicable law or agreed to in writing,
14*e76eebc6SAndrew Rist;  software distributed under the License is distributed on an
15*e76eebc6SAndrew Rist;  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e76eebc6SAndrew Rist;  KIND, either express or implied.  See the License for the
17*e76eebc6SAndrew Rist;  specific language governing permissions and limitations
18*e76eebc6SAndrew Rist;  under the License.
19*e76eebc6SAndrew Rist;
20*e76eebc6SAndrew Rist;**************************************************************
21cdf0e10cSrcweir
22cdf0e10cSrcweir.386
23cdf0e10cSrcweir
24cdf0e10cSrcweirPUBLIC _DllMgr_call32@12
25cdf0e10cSrcweirPUBLIC _DllMgr_callFp@12
26cdf0e10cSrcweir
27cdf0e10cSrcweir_TEXT SEGMENT
28cdf0e10cSrcweir_DllMgr_call32@12:
29cdf0e10cSrcweir_DllMgr_callFp@12:
30cdf0e10cSrcweir    push ebp
31cdf0e10cSrcweir    mov ebp, esp
32cdf0e10cSrcweir    push esi
33cdf0e10cSrcweir    push edi
34cdf0e10cSrcweir    mov ecx, [ebp+16]
35cdf0e10cSrcweir    jecxz $1
36cdf0e10cSrcweir    sub esp, ecx
37cdf0e10cSrcweir    mov edi, esp
38cdf0e10cSrcweir    mov esi, [ebp+12]
39cdf0e10cSrcweir    shr ecx, 2
40cdf0e10cSrcweir    rep movsd
41cdf0e10cSrcweir$1: call DWORD PTR [ebp+8]
42cdf0e10cSrcweir    ; for extra safety, do not trust esp after call (in case the Basic Declare
43cdf0e10cSrcweir    ; signature is wrong):
44cdf0e10cSrcweir    mov edi, [ebp-8]
45cdf0e10cSrcweir    mov esi, [ebp-4]
46cdf0e10cSrcweir    mov esp, ebp
47cdf0e10cSrcweir    pop ebp
48cdf0e10cSrcweir    ret 12
49cdf0e10cSrcweir_TEXT ENDS
50cdf0e10cSrcweirEND
51