Write a small C program that uses system("pause"), and change the project setting to output assembly code. Use the generated assembly code to determine the naming and calling convention for system().
Pergunta
Like C & C++ we use "system("pause");" how to pause console in MS Visual Studio 2010 assembly language
.586
.model flat ;,stdcall
.stack 4096
.data
number DWORD -105
sum DWORD ?
.code
main:nop
mov eax,number
add eax,158
mov sum,eax
mov eax,0
ret
end main
where i have to change this code.
Solução
Outras dicas
Try this statement in .code section after display what you want
.code
;write your code
call Waitmsg
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow