





























DYNTrapReset    macro   reg,peflgas
        local   dtrx

        .errb   <reg>
        .errb   <peflags>
if      RAS
        mov     reg,OFFSET FLAT:_DYNNullResetPoint
        xchg    reg,ds:[_pbDYNResetPoint]       



        mov     BYTE PTR [reg],MI_INT3          
        cmp     reg,OFFSET FLAT:_DYNNullResetPoint      
        je      short dtrx                      







        xchg    reg,DWORD PTR [peflgas]                 
        and     reg,NOT F_TRACE                         
        and     DWORD PTR [_DYNSavedUserFlags],F_TRACE  
        or      reg,DWORD PTR [_DYNSavedUserFlags]      
        xchg    reg,DWORD PTR [peflgas]                 



dtrx:
endif   
endm    


