nosconf Posted January 14, 2009 Posted January 14, 2009 Is it possible to rip asm code and use it in delphi?Many thanksNoScONf
D1N Posted January 15, 2009 Posted January 15, 2009 nosconf the answer is yes, you can rip asm code and use it in not only pascal/delphi but other languages as well. You will undoubtedly need to use the correct syntax something in a procedure for instance. You are going to have some trouble with "ripped code" but if you understand asm it shouldnt be difficult to take some ripped code in import it into your function depending on what the code your ripping intends to do. You may already be seasoned with Delphi and ASM but if your not take a few hours to read this. There are some plugins for olly on tuts4you main page that rip code. Good Luck!Learning assembler with delphioriginal function in pascalfunction Sum(X,Y:integer):integer; begin Result := X+Y; end;asm in delphifunction Sum(X,Y:integer):integer; begin asm mov eax,X add eax,Y mov Result,eax end;end;
nosconf Posted January 15, 2009 Author Posted January 15, 2009 nosconf the answer is yes, you can rip asm code and use it in not only pascal/delphi but other languages as well. You will undoubtedly need to use the correct syntax something in a procedure for instance. You are going to have some trouble with "ripped code" but if you understand asm it shouldnt be difficult to take some ripped code in import it into your function depending on what the code your ripping intends to do. You may already be seasoned with Delphi and ASM but if your not take a few hours to read this. There are some plugins for olly on tuts4you main page that rip code. Good Luck!Learning assembler with delphioriginal function in pascalfunction Sum(X,Y:integer):integer; begin Result := X+Y; end;asm in delphifunction Sum(X,Y:integer):integer; begin asm mov eax,X add eax,Y mov Result,eax end;end;Excellent!Thanks mate!
D1N Posted January 16, 2009 Posted January 16, 2009 Your welcome brother. Hope it works out for you. :-)Cheers!
0xFF Posted January 16, 2009 Posted January 16, 2009 If you're interested about using asm in Delphi, you can learn here - http://delphi.about.com/library/bluc/text/uc052501a.htm
null46 Posted January 17, 2009 Posted January 17, 2009 The above example can also be done like this: function Sum(X, Y: integer): integer;asm add eax, edx retend; Cheers, hope it helps in some way
BoRoV Posted January 17, 2009 Posted January 17, 2009 The above example can also be done like this: function Sum(X, Y: integer): integer;asm add eax, edx retend; Cheers, hope it helps in some way function Sum(X, Y: integer): integer;asm add eax, edxend; ret not obligatory
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now