-1
經過大約一個小時將我的頭撞在牆上,我決定問你們這件事。我使用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
你爲什麼在意?什麼是實際問題? – Jester
@Jester你是什麼意思?調試程序導致這一點,程序永遠不會啓動。我相當肯定,這個調試輸出是不正常的事情。 – Algorn120
看起來像它啓動和完成沒有錯誤。 – Jester