Visual Studio 2015大规模的“加载/卸载”调试输出,同时使用Irvine编码ASM
问题描述:
经过大约一个小时将我的头撞在墙上,我决定问你们这件事。我使用KipIrvine的东西编写了程序集,如果有帮助,我在Windows 10上使用Visual Studio 2015。很明显,这个调试输出不应该发生,它应该运行我的程序,而不是只提供一个大规模的卸载/加载调试菜单吗?下面是调试输出的一小部分:Visual Studio 2015大规模的“加载/卸载”调试输出,同时使用Irvine编码ASM
'ohgodpleasework.exe' (Win32): Loaded 'C:\Users\Algor\Desktop\visualstudio2k15\Project64_VS2015\x64\Debug\ohgodpleasework.exe'. Symbols loaded.
'ohgodpleasework.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
'ohgodpleasework.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'ohgodpleasework.exe' (Win32): Unloaded 'C:\Windows\System32\kernel32.dll'
'ohgodpleasework.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'ohgodpleasework.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'ohgodpleasework.exe' (Win32): Unloaded 'C:\Windows\System32\KernelBase.dll'
'ohgodpleasework.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'ohgodpleasework.exe' (Win32): Unloaded 'C:\Windows\System32\KernelBase.dll'
这KernelBase.dll有大约75的它自己的线路,一样的加载/卸载线。它结束于:
"The program '[1896] ohgodpleasework.exe' has exited with code 0 (0x0)."
任何人都有这种情况发生之前谁能提供一些见解?
如这里要求的是什么,我试图运行的代码:
; Use of if statement
INCLUDE C:\Irvine\Irvine32.inc
.data
cost Dword ?
revenue Dword ?
str1 Byte "Enter revenue", 0dh, 0ah, 0
str2 Byte "Enter cost", 0dh, 0ah, 0
str3 Byte "Break Even", 0dh, 0ah, 0
str4 Byte "Profit = ", 0
Str5 Byte "Loss = ", 0
.code
main PROC
lea edx,str1
call WriteString
call ReadDec
mov revenue, eax
lea edx,str2
call WriteString
call ReadDec
mov cost, eax
cmp revenue, eax
JE L1 ;if (revenue== cost)
JA L2 ;if else (revenue > cost)
JB L3 ;if else (revenue < cost)
L1:
lea edx, str3
call WriteString
jmp Stop
L2:
mov ebx, cost
mov eax, revenue
sub eax, ebx
lea edx, str4
call WriteString
call WriteDec
call crlf
jmp Stop
L3:
mov ebx, revenue
mov eax, cost
sub eax, ebx
lea edx, str5
call WriteString
call WriteDec
call crlf
Stop:
exit
main ENDP
END main
答
您可以控制
(TOOLS)(期权)(调试)(OUTPUT WINDOW)
模块负载消息
模块卸载消息
你为什么在意?什么是实际问题? – Jester
@Jester你是什么意思?调试程序导致这一点,程序永远不会启动。我相当肯定,这个调试输出是不正常的事情。 – Algorn120
看起来像它启动和完成没有错误。 – Jester