nosconf Posted January 14, 2009 Share Posted January 14, 2009 Is it possible to rip asm code and use it in delphi?Many thanksNoScONf Link to comment
D1N Posted January 15, 2009 Share 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; Link to comment
nosconf Posted January 15, 2009 Author Share 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! Link to comment
D1N Posted January 16, 2009 Share Posted January 16, 2009 Your welcome brother. Hope it works out for you. :-)Cheers! Link to comment
0xFF Posted January 16, 2009 Share 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 Link to comment
null46 Posted January 17, 2009 Share 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 Link to comment
BoRoV Posted January 17, 2009 Share 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 Link to comment
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