Quote:
Originally Posted by rc-flitzer @trustkill: You could use some .bin program (like Battery Charge Info) for switching vibra on/off. Code: mov [-r0], r12
mov r12, 02Fh ; vibra "sound"
calls 0C30014h ; tone no. in r12
mov r12, [r0+]
rets And for stopping vibra: Code: mov [-r0], r12
mov r12, 00h ; silence
calls 0C30014h ; tone no. in r12
mov r12, [r0+]
rets You know how to compile. If you want a shortcut for this function,that's not so easy. Maybe a change in the "java shortcut with right key" patch would do, it's of course possible. |
OK, now I changed it to:
Code:
base 000000h
mov r12, #2Fh ; or #00h
calls 0C30014h
rets
and compiled it with patch2bin.pl .... Very fine.
I have now "VibraOn.bin" & "VibraOff.bin", it´s a great sample for the
BFA.Binary File Access Patch.
For everyone who´s interested, here is a link to the patch2bin perl script:
LINK to patch2bin