⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug_asm.s

📁 winNT技术操作系统,国外开放的原代码和LIUX一样
💻 S
字号:
/*
 * COPYRIGHT:         See COPYING in the top level directory
 * PROJECT:           ReactOS Run-Time Library
 * PURPOSE:           Debug Routines
 * FILE:              lib/rtl/i386/debug.S
 * PROGRAMER:         Alex Ionescu (alex@relsoft.net)
 */

.intel_syntax noprefix

/* GLOBALS ****************************************************************/

.globl _DbgBreakPoint@0
.globl _DbgBreakPointWithStatus@4
.globl _DbgUserBreakPoint@0
.globl _DebugService@20
.globl _DbgBreakPointNoBugCheck@0

/* FUNCTIONS ***************************************************************/

.func DbgBreakPointNoBugCheck@0
_DbgBreakPointNoBugCheck@0:
    int 3
    ret
.endfunc

.func DbgBreakPoint@0
_DbgBreakPoint@0:
_DbgUserBreakPoint@0:
    int 3
    ret
.endfunc

.func DbgBreakPointWithStatus@4
_DbgBreakPointWithStatus@4:
    mov eax, [esp+4]
    int 3
    ret 4
.endfunc

.func DebugService@20
_DebugService@20:

    /* Setup the stack */
    push ebp
    mov ebp, esp

    /* Save the registers */
    push ecx
    push ebx
    push edi
    push edi
    push ebx

    /* Call the Interrupt */
    mov eax, [ebp+8]
    mov ecx, [ebp+12]
    mov edx, [ebp+16]
    mov ebx, [ebp+20]
    mov edi, [ebp+24]
    int 0x2D
    //int 3

    /* Restore registers */
    pop ebx
    pop edi
    pop edi
    pop ebx

    /* Return */
    leave
    ret 20
.endfunc

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -