Changeset 2583 for trunk/src/NTDLL/regfunc.asm
- Timestamp:
- Jan 31, 2000, 11:31:25 PM (26 years ago)
- 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 phallerExp $1 ; $Id: regfunc.asm,v 1.3 2000-01-31 22:31:25 sandervl Exp $ 2 2 3 3 ;/* … … 18 18 ; ---------------------------------------------------------------------------- 19 19 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 21 22 public DbgBreakPoint 22 23 … … 29 30 30 31 ; ---------------------------------------------------------------------------- 31 ; Name : _ alloca_probe, _chkstk32 ; Name : _chkstk 32 33 ; Purpose : 33 34 ; Parameters: 34 35 ; Variables : 35 36 ; Result : 36 ; Remark : NTDLL.938, NTDLL.94637 ; Remark : 37 38 ; Status : VERIFIED 38 39 ; … … 65 66 retn 66 67 _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 83 arg_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 67 107 68 108
Note:
See TracChangeset
for help on using the changeset viewer.