• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
using struct in Intel format inline assembly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: In search of a shortcut to view docs for non-Apple APIs
  • Next by Date: Re: Universal binary & multiple OS targets
  • Previous by thread: Re: In search of a shortcut to view docs for non-Apple APIs
  • Next by thread: unknown symbol '_stdscr'
  • Index(es):
    • Date
    • Thread