質問

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.

役に立ちましたか?

解決

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().

他のヒント

Try this statement in .code section after display what you want

.code
;write your code
call Waitmsg
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top