Jump to content

Photo

ASM FasmAssemblerException [resolved]


  • Please log in to reply
1 reply to this topic

#1 kissxrl Posted 15 September 2014 - 02:43 PM

kissxrl

    Soldier

  • Members
  • Pip
  • 1 posts
            var asm = FasmNet.Assemble(@"
push 0
push 0
push 0x7fffffff
mov ecx,0x400000
mov eax,0x400000
call eax");
 
            Console.WriteLine(asm.m_bytes_hexString());
 
 
未经处理的异常:  Binarysharp.Assemblers.Fasm.FasmAssemblerException: An error oc
curred during FASM was assembling mnemonics. Error code: -121 (ValueOutOfRange);
 Error line: 4; Error offset: 18
 
 
 
Have found the problem.    head  add  use32   

 


Edited by kissxrl, 15 September 2014 - 03:13 PM.

  • Back to top
  • Report

#2 ZenLulz Posted 07 January 2015 - 09:37 PM

ZenLulz

    Lead Developer

  • Administrators
  • 67 posts
  • LocationSwitzerland

Dear kissxrl,

 

Sorry for the long delay.

You are right, you missed to specify the use32 directive, which is mandatory for FasmNet.

 

Cheers,

Zen


ZenLulz

  • Back to top
  • Report




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users