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().
Question
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.
Solution
OTHER TIPS
Try this statement in .code section after display what you want
.code
;write your code
call Waitmsg
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow