assembler copy char[]

nobody not at possible.net
Thu Jun 7 02:50:35 PDT 2007


Hello,

i try copy mystring to st in assembler. 
Can someone give me an advice how to do this.

import std.stdio;
void main()
{
        char[] mystring = "Hey Assembler\n";
        char[] st;

        asm
        {
                mov EAX, dword ptr [mystring+4];
                mov st,EAX;
        }
        writefln("st: ", st);
}

I get a Segmentation fault .

Thanks


More information about the Digitalmars-d-learn mailing list