-1

壁に頭を打つ約1時間後、私はあなたにこれについてお尋ねすることにしました。私はKipIrvineのものを使用してアセンブリでコーディングしています。Windowsの場合はVisual Studio 2015を使用しています。明らかに、このデバッグ出力は起こらないはずです。大量のアンロード/ロードデバッグメニューを表示するのではなく、プログラムを実行する必要があります。Visual Studio 2015アーバインで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 
+0

なぜ気になりますか?実際の問題は何ですか? – Jester

+0

@Jesterどういう意味ですか?プログラムのデバッグはこれにつながり、プログラムは起動しません。私はかなりこのデバッグ出力が正常なものではないことを確信しています。 – Algorn120

+1

エラーなしで起動して完了したようです。 – Jester

答えて

1

あなたはその

(TOOLS)(オプション)(デバッグ)(出力ウィンドウ)

を制御することができます。

ここで要求されたよう

は、私が実行しようとしているもののコードですモジュールロードメッセージ

モジュールアンロードメッセージ

関連する問題