Pages: 1
Posted on 05-10-14, 10:42 am (rev. 2 by  TheToaster on 11-06-15, 12:47 pm)
Paragoomba


Karma: 37
Posts: 17/69
Since: 01-29-14
...
_________________________
Posted on 05-10-14, 12:17 pm
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 10000
Posts: 4027/4457
Since: 06-08-11
The ASM patch template already does that, you can write either ASM, C or C++.

You will still have to learn some ASM to at least understand the code from the game in IDA Pro to be able to do stuff, like knowing where to put hooks and how to modify stuff.

For example, if you want to modify the contents of a register in some point of NSMB's code, you'll have to write a hook in ASM, which changes the register and immediately returns. On the other hand, stuff like replacing entire functions that do complex stuff can usually be done in C/C++ because functions have well-defined parameters and return values that the compiler knows how to handle.
Posted on 05-10-14, 12:23 pm
☭ coffee and cream


Karma: 10415
Posts: 1381/2768
Since: 06-26-11
You can look in my custom sprite 100 hack for an example. It's a mix of ASM and C. I used ASM to hook the sprite's constructor and load a custom vtable, and C for the rest.
_________________________
Kuribo64 - RH-fucking-cafe - Kafuka

zrghij
Posted on 05-10-14, 01:22 pm
Paragoomba


Karma: 37
Posts: 18/69
Since: 01-29-14
Ok thanks, I do have some knowledge in ASM but not very much, because it is just one step up from raw machine code, so I guess that is why its hard
_________________________
Pages: 1