correct stack depth checking

git-svn-id: svn://kolibrios.org@705 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2008-01-28 16:26:51 +00:00
parent 7ad5e56087
commit 7602a89157
5 changed files with 169 additions and 272 deletions

View File

@@ -68,7 +68,7 @@ msg db "Stack Overflow!", 0dh, 0ah, 0
_quif ae ; - ...
sub eax,esp ; - calculate new low point
neg eax ; - calc what new SP would be
cmp eax,_STACKLOW ; - quit if too much
cmp eax,[_STACKLOW] ; - quit if too much
_quif be ; - ...
call __GRO ; - return
ret