• 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
Intel assembly questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intel assembly questions


  • Subject: Intel assembly questions
  • From: Dave Camp <email@hidden>
  • Date: Wed, 18 Jan 2006 11:31:53 -0800

I've started porting some cross-platform Windows/Mac code that has some Intel inline assembly and I've got a couple of questions:

First, Xcode gives me the impression that there are two different ways to compile the assembly: GCC and NASM. Is that correct? What criteria should I use to determine which to use?

Second, this bit of code is giving me fits, mostly because I'm not familiar with Intel assembly syntax (but I assume I'll be overcoming that real soon).

    static const Int64 s1 = 0xFFFE0005FFFB0002;

    _asm {
        mov         esi, pV1
        mov         edi, iVertSize
        mov         eax, iPixelDistance
        lea         esi, [esi+eax*2]
        pxor        mm7, mm7

MainLoop:
        movzx       eax, byte Ptr [esi+4]
...


The last line is the issue. I assume the original syntax is trying to say 'treat [esi+4] as a byte pointer". Xcode does not like the "byte Ptr" operands.


Removing those causes the following error: No such 386 instruction: movzl

What is the replacement syntax for "byte Ptr"?

Is there some documentation that covers platform syntax differences like this that I have missed?

Thanks,
Dave

---
There's an old proverb that says just about whatever you want it to.

_______________________________________________
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


  • Follow-Ups:
    • Re: Intel assembly questions
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: [FAQ] Sharing Xcode precompiled headers across projects
  • Next by Date: Re: Debugger Balking
  • Previous by thread: Re: Xcode Tools 2.2.1 installer fails to correctly install the Java documentation
  • Next by thread: Re: Intel assembly questions
  • Index(es):
    • Date
    • Thread