View Single Post
Old 10-21-2004, 10:26   #2155 (permalink)
trustkill
No Life Poster
 
trustkill's Avatar
 
Join Date: May 2003
Location: GERMANY
Age: 49
Posts: 980
Member: 27745
Status: Offline
Thanks Meter: 0
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
  Reply With Quote
 
Page generated in 0.08099 seconds with 7 queries