-1

벽에 머리를 대고 약 1 시간이 지난 후, 저는 여러분에게 이것에 대해 물어보기로했습니다. KipIrvine의 물건을 사용하여 어셈블리에서 코딩 중이며, Windows 10에서 Visual Studio 2015를 사용하고 있습니다. 분명히이 디버그 출력이 발생해서는 안됩니다, 그냥 내 거대한 언로드 /로드 디버그 메뉴 바로 givng 대신 내 프로그램을 실행해야합니까? 여기 디버그 출력의 작은 부분은 다음과 같습니다 KernelBase.dll은 약 75 그것의 자신의 선, 그냥 같은로드/언로드 라인을 한 것으로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' 

. 그리고 다음과 같이 끝났습니다 :

"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) (옵션) (오류 추적) (출력 창)

을 제어 할 수 있습니다

여기 요청으로

내가 실행하는 데 노력하고있어의 코드입니다 모듈로드 메시지

모듈 언로드 메시지