当我单步执行以将这两条不同的行打印到控制台cmd中的不同行而不是在同一行上时,如何获取代码。
.586
.model flat, stdcall
GetStdHandle proto :dword
WriteConsoleA proto :dword, :dword, :dword, :dword, :dword
ExitProcess proto :dword
STD_OUTPUT_HANDLE equ -11
.data
Title db "Basic Calculator",0
Intruct1 db "please type your expresion",0
outputHandle DWORD ?
bytes_written dd ?
bytes_written2 dd ?
.code
main proc
invoke GetStdHandle, STD_OUTPUT_HANDLE
mov outputHandle, eax
invoke WriteConsoleA, outputHandle, addr Title, 20, addr bytes_written, 0
invoke GetStdHandle, STD_OUTPUT_HANDLE
mov outputHandle, eax
invoke WriteConsoleA, outputHandle, addr Intruct1, 45, addr bytes_written2, 0
invoke ExitProcess, 0
main endp
end