0

Visual Studio 2010 でアセンブリ関数をステップ実行しようとしていますが、デバッガーがretステートメントに到達するたびに、ウィンドウに "ソースがありません" というテキストが表示され、デバッガーは単にプログラムを終了します。関数呼び出しが含まれている場合、Visual Studio デバッガーで x86 アセンブリ言語プログラムを実行することさえ可能ですか?

.686p
.model flat,stdcall
.stack 2048
.data
ExitProcess proto, exitcode:dword
.code

start:

jumpIfEqual PROC var1:DWORD, var2:DWORD, jmpAddress:DWORD
    mov eax,var1
    cmp eax,var2
    jne skip
    pop eax
    push jmpAddress
    skip:
    ret ;this statement opens up a window in Visual Studio with the text "no source available", and then the program simply exits
jumpIfEqual ENDP

push OFFSET jumpIfEqual ;call the function
mov eax, 5 ;set the parameters for the function
push eax
push eax
call jumpIfEqual

invoke  ExitProcess, 0
end start
4

0 に答える 0