m0sk
April 2nd, 2001, 19:48
hi,
I have two questions regarding the following snippet:
* What does SoftIce mean with that ``STATUS_BREAKPOINT'' comment? I searched through the Sice docs, but couldn't find anything about it. It can't be some leftover debug info, as there is none... It doesn't seem too important though, but I'm curious to find out (btw: I am on NTIce now, and didn't see this comment in win98---at least as far as I can remember ;-))
* Regarding the code itself: what could be the meaning of lines 40BFBA..40BFBE? I know they're only executed when the result of the AND sets the sign flag, but what's the use? Note: edx contains the reamainder of an IDIV (in this case always a positive integer, jns is always taken). Obviously, the compiler put these instructions there to deal with negative results of the signed division...but what exactly do they mean ???
Any insight appreciated ;-)
Regards,
m0sk
I have two questions regarding the following snippet:
Code:
:0040BFB0 mov edx, ecx
:0040BFB2 and edx, 80000003h ;STATUS_BREAKPOINT
:0040BFB8 jns 40BFBF
:0040BFBA dec edx
:0040BFBB or edx, 0FFFFFFFCh
:0040BFBE inc edx
>:0040BFBF inc edx
* What does SoftIce mean with that ``STATUS_BREAKPOINT'' comment? I searched through the Sice docs, but couldn't find anything about it. It can't be some leftover debug info, as there is none... It doesn't seem too important though, but I'm curious to find out (btw: I am on NTIce now, and didn't see this comment in win98---at least as far as I can remember ;-))
* Regarding the code itself: what could be the meaning of lines 40BFBA..40BFBE? I know they're only executed when the result of the AND sets the sign flag, but what's the use? Note: edx contains the reamainder of an IDIV (in this case always a positive integer, jns is always taken). Obviously, the compiler put these instructions there to deal with negative results of the signed division...but what exactly do they mean ???
Any insight appreciated ;-)
Regards,
m0sk