c879f0d115
-updated to version 2.5- *Fixed a bug in DM that could cause a fatal read error when using devices with under 8GB size *Added a PADHOOK pattern for Batman:Vengeance *Added a screenshot feature This feature can be enabled/disabled via the DM(L) config Press R+Z on the fourth controller to take a screenshot any time! Screenshots will be saved to device:/screenshots in the YPbPr format, you can use my tool to convert them. git-svn-id: svn://localhost/Users/andi/Downloads/code/DML@33 be6c1b03-d731-4111-a574-e37d80d43941
19 lines
232 B
ArmAsm
19 lines
232 B
ArmAsm
#include <asm.h>
|
|
|
|
|
|
PADRead:
|
|
|
|
lis %r4, 0xCC00
|
|
|
|
lwz %r5, 0x6428(%r4)
|
|
lwz %r0, 0x642C(%r4)
|
|
|
|
lwz %r0, 0x6404(%r4)
|
|
lwz %r4, 0x6408(%r4)
|
|
|
|
lis %r4, 0xC000
|
|
stw %r0, 0x12FC(%r4)
|
|
stw %r5, 0x12F8(%r4)
|
|
|
|
blr
|