GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > GSM & CDMA Phones / Tablets Software & Hardware Area > Various > Siemens-Benq > Siemens-Benq Flash Patching > x4x, x5x Flashpatching


Reply
 
LinkBack Thread Tools Display Modes
Old 05-12-2005, 20:46   #2626 (permalink)
Insane Poster
 
Join Date: Nov 2004
Location: Poznan, Poland
Age: 37
Posts: 78
Member: 94448
Status: Offline
Thanks Meter: 0

@you masters: why it turn off the phone? Where is the bug?

Code:
write_file:
	mov	r13,	#p(file_name)	;r13:r12 = pointer to ASCIIZ filename
	mov	r12,	#q(file_name)
	calls	fileOpen			;r4 = Open result, if success r4=fileHandle, if failed, r4=FFFF

	cmp	r4,	#0ffffh
	jmpr	cc_Z,	return

	push	r4

	mov	r12,	r4			;r12=fileHandle
	mov	r15,	#filesize		;r15=size
	mov	r14,	#p(game_start)	;r14:r13 = pointer to buffer
	mov	r13,	#q(game_start)
	calls	fileWrite

	pop	r12			;r12=fileHandle
	calls	fileClose
return:
	rets
regards
  Reply With Quote
Old 05-13-2005, 01:10   #2627 (permalink)
No Life Poster
 
Join Date: Mar 2002
Location: -[r0]-
Age: 53
Posts: 834
Member: 9891
Status: Offline
Thanks Meter: 2
@cyperghost:
- what do you mean with graphical separator? Something like line separator in the SL menu?

@sc0ty:
- please read the discussion in the Technical topics. All file functions is not call-able directly. Need some unknown initial procedures. And the trick is using FAM patch ... for FAM usage example, download from my z-soft site ...
  Reply With Quote
Old 05-13-2005, 02:48   #2628 (permalink)
No Life Poster
 
charlielao's Avatar
 
Join Date: May 2004
Posts: 501
Member: 66040
Status: Offline
Thanks Meter: 14
@Master Riza:
Do you know what the RAM loc 0C830C to 0C830E points to? Ive noticed that 0C830E is always 0Ch if it is normal sms and different if from network provider. The other 2 loc i dont know. Is there a sms RAM loc for knowing the CI of the sms sender?
  Reply With Quote
Old 05-13-2005, 09:12   #2629 (permalink)
No Life Poster
 
Join Date: Oct 2003
Posts: 705
Member: 42457
Status: Offline
Thanks Meter: 1
@riza
Yes as you descriped...

Shutdown Phone
Restart Phone
---------------------
Set mute
Set beep
---------------------
Set Profile 1
Set Profile 2
.
.

Should be possible imho. We just need a textstring with "------" and a "patch" that calls only "return" command? I never tried therefore I asked you
___________
EDIT:

Okay I tried and it works, just searched for ANY db00 (Return command)
I tried 128.c7d078
and 129.c7d078
and it results the ----help---- string, if we select the entry nothing happens
___________
EDIT2:

This method lacks in byte saving because we can write only 11 commands for each FAV entry and every seperator needs one command Better would be a shortcut like @2d6.d8e1d6, results

---------------
Currency converter
.
.

That the reason I asked the question

And it would be possible to overjump the sperator?

Shutdown phone <--- Now selected
----------------
Currency Converter

press 1 time arrow down

Shutdown phone
----------------
Currency Converter <--- Now selected

I know it's just cosmetic

Last edited by cyperghost; 05-13-2005 at 09:32.
  Reply With Quote
Old 05-13-2005, 18:53   #2630 (permalink)
Insane Poster
 
Join Date: Nov 2004
Location: Poznan, Poland
Age: 37
Posts: 78
Member: 94448
Status: Offline
Thanks Meter: 0
@rizapn: thanks master, but I can't find example for write to file using by FAM
  Reply With Quote
Old 05-14-2005, 18:09   #2631 (permalink)
No Life Poster
 
Join Date: Oct 2003
Posts: 705
Member: 42457
Status: Offline
Thanks Meter: 1
@charlie
Your latest patch is cool Thank you
But it would be better to use the "Main Screen Patches" as entrypoint. If you use the entrypoint DeadmanS provided then number is overwritten by SOL patches

Does anybody know how to toggle profiles and ringer settings (Mute Beep Normal) via entrypoint. Would be perfect for latest FAV patch
  Reply With Quote
Old 05-16-2005, 01:29   #2632 (permalink)
No Life Poster
 
Join Date: Mar 2002
Location: -[r0]-
Age: 53
Posts: 834
Member: 9891
Status: Offline
Thanks Meter: 2
@sc0ty:
- download file rizapn_asm.zip (little old archive but containing some usefull asm files) from http://groups.yahoo.com/group/z-soft...ens/0.Patches/
- extract sl45c.asm, check at least "ICD" patch, and you will get the code.
- you can also read DeadMan's lrt.asm.

rizapn
  Reply With Quote
Old 05-16-2005, 02:30   #2633 (permalink)
No Life Poster
 
charlielao's Avatar
 
Join Date: May 2004
Posts: 501
Member: 66040
Status: Offline
Thanks Meter: 14
@Cyper:
But it would be better to use the "Main Screen Patches" as entrypoint. If you use the entrypoint DeadmanS provided then number is overwritten by SOL patches
Try this EP for MSP:
0x27D700: FFFFFFFF CC00CC00 ; free for further usage
  Reply With Quote
Old 05-16-2005, 09:31   #2634 (permalink)
No Life Poster
 
Join Date: Oct 2003
Posts: 705
Member: 42457
Status: Offline
Thanks Meter: 1
Thanks charlie, I did it already
I just wanted to mention it to you that MSP EP might be better because it displays SNC and SSSN in foreground
  Reply With Quote
Old 05-16-2005, 13:34   #2635 (permalink)
Insane Poster
 
Join Date: Nov 2004
Location: Poznan, Poland
Age: 37
Posts: 78
Member: 94448
Status: Offline
Thanks Meter: 0
thx master riza, but can you tell me, whot is this data:

Code:
cdr_append:
	mov	r14, #010Ah
	mov	r13, #pag(cdr_filename)
	mov	r12, #pof(cdr_filename)
	mov	r15, #0100h
	calls	fileOpen
	mov	r12, r4
	add	r4, #1
	jmpr	cc_Z, cdr_rets
	mov	[-r0], r12
	mov	r13, #pof(cdr_string)
	mov	r14, #pag(cdr_string)
	extp	r14, #1
	movb	rl4, [r13+]
	movbz	r15, rl4
	calls	fileWrite
	mov	r12, [r0+]
	jmps	fileClose
  Reply With Quote
Old 05-16-2005, 13:37   #2636 (permalink)
No Life Poster
 
trustkill's Avatar
 
Join Date: May 2003
Location: GERMANY
Age: 49
Posts: 980
Member: 27745
Status: Offline
Thanks Meter: 0
can you please discuss this in the "Technical Discussion" thread ?

btw: @ sc0ty: Very great new .bin file (Archer) ! Thanks a lot !
  Reply With Quote
Old 05-16-2005, 15:36   #2637 (permalink)
Insane Poster
 
Join Date: Nov 2004
Location: Poznan, Poland
Age: 37
Posts: 78
Member: 94448
Status: Offline
Thanks Meter: 0
Thanks truskill and sorry. Please master riza answer me in the "Technical Discussion" thread.
  Reply With Quote
Old 05-18-2005, 05:40   #2638 (permalink)
No Life Poster
 
charlielao's Avatar
 
Join Date: May 2004
Posts: 501
Member: 66040
Status: Offline
Thanks Meter: 14
@sc0ty:
Can you please tell me also how to make a patch to read a txt file in the MMC? I cant understand you discussion with Master Riza because its too "technical" for me Ive been looking into Master's ICD patch but cant understand it. Thanks
  Reply With Quote
Old 05-18-2005, 14:42   #2639 (permalink)
Insane Poster
 
Join Date: Nov 2004
Location: Poznan, Poland
Age: 37
Posts: 78
Member: 94448
Status: Offline
Thanks Meter: 0
@charlie: Maybe this simple example give you some info:
Code:
mov r14, #0100h
mov r13, #pag(filename)
mov r12, #pof(filename)
mov r15, #0100h
calls fileOpen

push r4
mov r12, r4
mov r13, #pof(buf)
mov r14, #pag(buf)
mov r15, #80                 ;file size
calls fileRead

pop r12
calls fileClose
rets
good luck
  Reply With Quote
Old 05-19-2005, 01:16   #2640 (permalink)
No Life Poster
 
charlielao's Avatar
 
Join Date: May 2004
Posts: 501
Member: 66040
Status: Offline
Thanks Meter: 14
@sc0ty:
To read file using fileOpen proc. you dont need #pag and #pof of a file, but you need #pag and #pof of file name in asciiz
how do i get the #pag and #pof of file name in asciiz if i have this from assembler?
61 3A 5C 66
69 6C 65 2E
74 78 74 00 : db 'a:\file.txt',0 ; 12.00.0

Last edited by charlielao; 05-19-2005 at 03:07.
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SLIKv56: Flash patches. arman68 x4x, x5x Flashpatching 685 10-02-2011 10:56
TOC for Sticky: SLIKv56: Flash patches. StevieRay x4x, x5x Flashpatching 17 10-15-2005 08:26
"Bugs" in Thread SLIKv56: Flash patches trustkill Siemens-Benq Flash Patching 2 07-13-2004 07:33
SLIK v56: Flash Patching (2nd part) ... rizapn x4x, x5x Flashpatching 329 09-07-2003 10:28
Where can i download riza's SLIKv56: Flash Patching (3rd part) Gabriel_he Siemens-Benq Flash Patching 2 04-04-2003 03:20

 



All times are GMT +1. The time now is 23:01.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.34112 seconds with 11 queries

SEO by vBSEO