Guide For Calling Functions in ASM Codes
#3
Since this thread was bumped, I thought I’d share some tips I’ve found useful.

It probably goes without saying, but in my opinion the best hook addresses for function calls are those right after a ‘bl.’ Picking such an address makes things easier because there’s no backing up of registers to worry about (except possibly r3 or f1).

Also, in dealing with functions used by an actual game, most of these will be methods belonging to a particular class. This implies there will be an inherent “this” pointer as the argument in r3, with the actual arguments beginning in r4. Just something I realized which is helpful to know, especially for reverse engineering.
Reply


Messages In This Thread
RE: Guide For Calling Functions (ASM) - by lovops - 08-12-2020, 04:24 AM
RE: Guide For Calling Functions (ASM) - by salmon01 - 08-12-2020, 04:55 AM
RE: Guide For Calling Functions (ASM) - by Seeky - 08-12-2020, 03:17 PM
RE: Assembly Tutorial - by coco - 11-22-2021, 07:14 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)