view tangotests/asm2.d @ 255:4d14a1c84be7 trunk

[svn r272] some rough html statistics for the tests
author ChristianK
date Thu, 12 Jun 2008 18:19:54 +0200
parents 74701ba40398
children
line wrap: on
line source

module tangotests.asm2;

extern(C) int printf(char*, ...);

int main()
{
    int i = 40;
    int j = 2;
    asm
    {
        mov EAX, i;
        mov EBX, j;
        add EAX, EBX;
        mov i, EAX;
    }
    printf("42 = %d\n", i);
    assert(i == 42);
    return 0;
}