Ignore:
Timestamp:
Jan 31, 2000, 11:31:25 PM (26 years ago)
Author:
sandervl
Message:

JW: .def file update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/regfunc.asm

    r1654 r2583  
    1 ; $Id: regfunc.asm,v 1.2 1999-11-09 09:54:47 phaller Exp $
     1; $Id: regfunc.asm,v 1.3 2000-01-31 22:31:25 sandervl Exp $
    22
    33;/*
     
    1818; ----------------------------------------------------------------------------
    1919
    20        public  _chkstk      ; _alloca_probe seems to be the same
     20       public  _chkstk     
     21       public  _alloca_probe; _alloca_probe seems to be the same as _chkstk
    2122       public  DbgBreakPoint
    2223
     
    2930
    3031; ----------------------------------------------------------------------------
    31 ; Name      : _alloca_probe, _chkstk
     32; Name      : _chkstk
    3233; Purpose   :
    3334; Parameters:
    3435; Variables :
    3536; Result    :
    36 ; Remark    : NTDLL.938, NTDLL.946
     37; Remark    :
    3738; Status    : VERIFIED
    3839;
     
    6566               retn
    6667_chkstk        endp
     68
     69
     70; ----------------------------------------------------------------------------
     71; Name      : _alloca_probe
     72; Purpose   :
     73; Parameters:
     74; Variables :
     75; Result    :
     76; Remark    :
     77; Status    : VERIFIED
     78;
     79; Author    : Patrick Haller [Mon, 1999/11/08 23:44]
     80; ----------------------------------------------------------------------------
     81_alloca_probe proc near
     82
     83arg_0          = byte ptr  8
     84
     85               push    ecx             ; _alloca_probe
     86               cmp     eax, 1000h
     87               lea     ecx, [esp+arg_0]
     88               jb      short _alloca_probe_1
     89
     90_alloca_probe_2:
     91               sub     ecx, 1000h
     92               sub     eax, 1000h
     93               test    [ecx], eax
     94               cmp     eax, 1000h
     95               jnb     short _alloca_probe_2
     96
     97_alloca_probe_1:
     98               sub     ecx, eax
     99               mov     eax, esp
     100               test    [ecx], eax
     101               mov     esp, ecx
     102               mov     ecx, [eax]
     103               mov     eax, [eax+4]
     104               push    eax
     105               retn
     106_alloca_probe  endp
    67107
    68108
Note: See TracChangeset for help on using the changeset viewer.