view tests/mini/compile_asm1.d @ 1021:d1ec9ff0e9ba

Implemented basic -m32 and -m64 options.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 01 Mar 2009 22:27:03 +0100
parents 657d37df25b0
children
line wrap: on
line source

extern(C) int printf(char*, ...);
void main()
{
    void* i;
    asm
    {
        mov EAX, FS:4;
        mov i, EAX;
    }
    printf("FS:4 = %p\n", i);
}