This was something I again wrote up years ago. I originally had linked to on a forum and that website that I originally had it posted doesn't exist. Good thing for the way back machine.

Small explanation. I was using this for modifying some ps2 and psp games. I would find an area in memory that was usuable and hexedit codes right into the game's SLUS file. That way there wasn't a need for a cheat device and most of the time it could also around getting banned. However I can't say this method would still work today for anything.

0xHHHHHHHH 0xDDDDDDDD
0xAAAAAAAA 0x3c08BBBB
0xAAAAAAAA 0x3508CCCC
0xAAAAAAAA 0x8d090000
0xAAAAAAAA 0x8d0a0004
0xAAAAAAAA 0x11200005
0xAAAAAAAA 0xad2a0000
0xAAAAAAAA 0x1000fff8
0xAAAAAAAA 0x25080008
0xAAAAAAAA0x03e00008
0xBBBBCCCC 0xEEEEEEEE
0xAAAAAAAA 0xFFFFFFFF
0xAAAAAAAA 0xEEEEEEEE
0xAAAAAAAA 0xFFFFFFFF
0xAAAAAAAA 0xEEEEEEEE
0xAAAAAAAA 0xFFFFFFFF

HHHHHHHH Hook
DDDDDDDD Data that points to the routine
AAAAAAAA Address (where ever you want to put the routine)
BBBB First 4 of the address you are loading from ( usually go a line right after this routine to store your codes)
CCCC Last 4 of the first line of the stack
EEEEEEEE Address for the code you wish to load
FFFFFFFF Data for the address that you wish to load



Example (PS2 Game)
20226b3c 0c0310ca
200c4328 3c08000c (Loads the upper 4 to the stack _000c4360)
200c432c 35084360 (Loads the lower 4 to the stack _000c4360)
200c4330 8d090000
200c4334 8d0a0004
200c4338 11200005
200c4340 ad2a0000
200c4348 1000fff8
200c434c 25080008
200c4350 03e00008
200c4360 0027fe20 (First address to perfect no popups)
200c4364 03e00008 (Data for the first line of perfect no popups)
200c4368 0027fe24 (Second address to perfect no popups)
200c436c 00000000 (Data for the second line for perfect no popups)


-1UP , Special thanks to Robby23