inline asm helloworld

-- MASM 2008. 4. 18. 18:22
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

#include <stdio.h>

char szFormat[] = "%s\n";
char szHWMsg[] = "helloworld";

int main(void)
{
    __asm
    {
        mov  eax, offset [szHWMsg]
        push eax
        mov  eax, offset [szFormat]
        push eax
        call printf

        pop  eax
        pop  eax
    }

    return 0;
}

'-- MASM' 카테고리의 다른 글

어셈블리강좌  (0) 2009.05.14
Intel Pentium Instruction Set Reference (ASMHelp)  (0) 2009.05.14
masm helloworld  (0) 2008.03.21
MASM Custom AppWizard  (0) 2008.03.11
Visual studio 6.0에서 어셈블리어 컴파일 설정법  (0) 2008.03.11
posted by 어린왕자악꿍