January 15, 200916 yr 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;
January 15, 200916 yr Author 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!
January 16, 200916 yr If you're interested about using asm in Delphi, you can learn here - http://delphi.about.com/library/bluc/text/uc052501a.htm
January 17, 200916 yr 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
January 17, 200916 yr 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
Create an account or sign in to comment