CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Operand Size ?

  1. #1
    Join Date
    May 2005
    Posts
    31

    Operand Size ?

    hi, I am new to Asm.
    EAX value is contain pointer to memory

    cmp [EAX], 65h

    how do I know if it's compare byte, word or dword operand size ?

    how to make sure that the compare is in byte size not in dword ?

    Note : using MASM (VS .Net)

  2. #2
    Join Date
    Jun 2005
    Posts
    1,255

    Smile Re: Operand Size ?

    I think the following syntax is working with Masm:
    Code:
    cmp byte ptr [EAX], 65h
    
    or
    
    cmp word ptr [EAX], 65h
    
    or
    
    cmp dword ptr [EAX], 65h

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured