using struct in Intel format inline assembly
using struct in Intel format inline assembly
- Subject: using struct in Intel format inline assembly
- From: "Jon Hodgson" <email@hidden>
- Date: Fri, 7 Jul 2006 15:50:06 +0100
Hi,
I'm porting code over from windows, and I have functions with inline
assemby. Most of this code (in intel format) seems to compile so far
without change, but I seemingly cannot access structs.
WIth the microsoft compiler I can do this kind of thing
struct MyStruct
{
int member1;
int member2;
}
MyStruct myStruct;
__asm{
mov ebx, myStruct;
mov ax, [ebx]MyStruct.member1;
mov cs, [ebx]MyStruct.member2
}
How do I do the same thing in GCC?
regards
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden