Results 1 to 4 of 4

Thread: MASM Syntax.

Hybrid View

  1. #1

    MASM Syntax.

    I am having a problem with an instruction in my code. I have made a function and in this function I have: mov ecx, username
    When I try to compile I get a: "invalid instruction operands" error on this line. I already have username defined and everything but this keeps giving me an error.

    Any help is greatly appreciated.

    EDIT: Ha! I figured out that I should have been using lea ecx, username. Now I have just completed my first keygen yay!
    Last edited by Innocent; September 25th, 2004 at 20:14.

  2. #2
    or use:

    mov eax, offset username

  3. #3
    Hiya Jimmy,

    Just saw your name and thought I'd say hi Long time, no see, eh?


  4. #4
    LTNS, true but still kicking

Similar Threads

  1. Executing segment codes from MASM with JMP
    By Unity in forum Advanced Reversing and Programming
    Replies: 1
    Last Post: August 5th, 2013, 17:31
  2. Log data: Syntax error; cause of source code issue
    By casterle in forum OllyDbg Support Forums
    Replies: 10
    Last Post: September 12th, 2004, 14:38
  3. Syntax Highlighting for OllyScript in UltraEdit
    By TQN in forum OllyScript Plugin
    Replies: 3
    Last Post: July 13th, 2004, 11:34
  4. MASM and MSVBVM60 imports
    By Fahr in forum Off Topic
    Replies: 25
    Last Post: April 29th, 2004, 13:46
  5. MASM and dword ptr
    By johndoe1 in forum The Newbie Forum
    Replies: 2
    Last Post: March 7th, 2004, 10:33


Posting Permissions

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