Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ripping code delphi

Featured Replies

Posted

Is it possible to rip asm code and use it in delphi?

Many thanks

NoScONf

yep, but need edit

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 delphi

original function in pascal

function Sum(X,Y:integer):integer; 
begin
Result := X+Y;
end;

asm in delphi

function Sum(X,Y:integer):integer; 
begin
asm
mov eax,X
add eax,Y
mov Result,eax
end;
end;
  • 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 delphi

original function in pascal

function Sum(X,Y:integer):integer; 
begin
Result := X+Y;
end;

asm in delphi

function Sum(X,Y:integer):integer; 
begin
asm
mov eax,X
add eax,Y
mov Result,eax
end;
end;

Excellent!

Thanks mate!

Your welcome brother. Hope it works out for you. :-)

Cheers!

The above example can also be done like this:

function Sum(X, Y: integer): integer;
asm
add eax, edx
ret
end;

Cheers, hope it helps in some way :smilie3:

The above example can also be done like this:
function Sum(X, Y: integer): integer;
asm
add eax, edx
ret
end;

Cheers, hope it helps in some way :smilie3:

function Sum(X, Y: integer): integer;
asm
add eax, edx
end;

ret not obligatory

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.