Re: Inline Assembler: Getting the offset of a label. How?

2008-12-09 Thread Kagamin
poly Wrote: > asm > { > call Label1; > Label1: pop ECX; > mov EAX, Label1; //error reported on this line > } I tried several tricks, seems like compiler doesn't support this.

Re: Inline Assembler: Getting the offset of a label. How?

2008-12-08 Thread poly
Kagamin schrieb: > poly Wrote: > >> I have a question about D 1.0 inline asm. Has anyone an idea how to get >> the offset of a label without using "call Label1", then "pop eax". >> Actually there would be an offsetof but it seems not to work. > > mov eax, Label1 Hi Kagamin, I've just tried this

Re: Inline Assembler: Getting the offset of a label. How?

2008-12-08 Thread Kagamin
poly Wrote: > I have a question about D 1.0 inline asm. Has anyone an idea how to get > the offset of a label without using "call Label1", then "pop eax". > Actually there would be an offsetof but it seems not to work. mov eax, Label1

Inline Assembler: Getting the offset of a label. How?

2008-12-08 Thread poly
Hello d folk, I have a question about D 1.0 inline asm. Has anyone an idea how to get the offset of a label without using "call Label1", then "pop eax". Actually there would be an offsetof but it seems not to work. In other (inline) assemblers I'd just use offset or addr, but it seems that my Win