Results 1 to 8 of 8

Thread: Beginner question?

  1. #1
    ChimpFace9000
    Guest
    I dont think so. If im wrong here, someone correct me.

    This...
    Code:
    mov edx, 100082E0
    mov ecx, dword ptr [edx + 0x04]
    And this...
    Code:
    mov ecx, dword ptr [100082E4]
    Are the same.

  2. #2
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Pretty much.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The first takes longer
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    True, but essentially they do the same thing (muck like LOOP and DEC / JNZ )
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Yes, except that one effects two registers.

    And for the LOOP / DEC/JNZ, they are also different in that DEC affects the flags.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Which one affects two registers?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    mov edx, 100082E0
    mov ecx, dword ptr [edx + 0x04]

    Affects both edx and ecx, while the other only affects ecx.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Ok. I see.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

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