Hooks
Posted at Wednesday, June 11th, 2008 4:02PM by Cricket_Boy

I don't know how to program hooks, as I barely know anything about them. Where can I look for assistance?


re:Hooks
Posted at Thursday, June 12th, 2008 1:20PM by Cricket_Boy

Neither of those two locations have any real tutorials, as I've checked them before.


re:Hooks
Posted at Thursday, June 12th, 2008 6:10PM by luby

Well, here's the basics. When a hook is called, it jumps to a memory address specified when it is enabled. So, if you are making it from an ASM prog (not recommended), you specify the address of saferam that you've copied the hook to and set a to 0.
http://wikiti.denglend.net/index.php?title=83Plus:Hooks:9B8C
To install that hook from an app, do the following.
in a,(6) //finds what page we are on
ld hl,HomescreenHook
b_call(_EnableHomescreenHook)
ret

HomescreenHook:
//hook stuff here


reply

You must be logged in to post replies.