我想知道如何在最后暂停控制台应用程序并按回车键,它以汇编结束。这是一段在屏幕上显示“hello world”的代码,但它会立即关闭。那么如何在最后暂停程序呢?
.386
.model flat,stdcall
option casemap:none
include windows.inc
include kernel32.inc
.data
sConsoleTitle db "Console Application",0
sWriteText db "Hello World",0
.code
Main PROC
LOCAL hStdout :DWORD
invoke SetConsoleTitleA, offset sConsoleTitle
invoke GetStdHandle, STD_OUTPUT_HANDLE
mov hStdout,EAX
invoke WriteConsoleA, hStdout, offset sWriteText, 16d, 0, 0
invoke ExitProcess, 0
Main ENDP
end Main