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 09-20-2004, 22:00   #106 (permalink)
No Life Poster
 
lalo.lerry's Avatar
 
Join Date: Jan 2004
Location: Italy
Age: 49
Posts: 1,018
Member: 50673
Status: Offline
Thanks Meter: 2

@ MASTER:
Long time ago you have explained me how to put a dinamic text in a MessageBox, but still I don't understand well to insert a variable number in that string.
I want to write "x inbox SMS", where x is a variable number stored in a RAM word, and "inbox SMS" is string ID A5 "inbox" + string ID 1AD "SMS" , how can I make the string to be used by string2ID function???
(Please for S45i if you can)
Thanks
  Reply With Quote
Old 09-21-2004, 00:19   #107 (permalink)
No Life Poster
 
Join Date: Mar 2002
Location: -[r0]-
Age: 53
Posts: 834
Member: 9891
Status: Offline
Thanks Meter: 2
@lalo:
1/ Use this list : 138Fh, 00A5h, 01ADh, 7FFFh in your MessageBox stringlist parameter
2/ Convert x to the digit, and convert the result using string2ID using ID 138F
3/ Call the MessageBox with that string list.

rizapn
  Reply With Quote
Old 09-21-2004, 10:02   #108 (permalink)
No Life Poster
 
lalo.lerry's Avatar
 
Join Date: Jan 2004
Location: Italy
Age: 49
Posts: 1,018
Member: 50673
Status: Offline
Thanks Meter: 2
@MASTER:
Ok, now I begin to undersand, but:
I don't know word2string () function, can you tell me (at least for SL45)?
And how to insert it in the beginning of my string?
Thanks
  Reply With Quote
Old 09-21-2004, 15:46   #109 (permalink)
Insane Poster
 
Join Date: Feb 2003
Posts: 71
Member: 22759
Status: Offline
Thanks Meter: 0
Can I try to answer ?
Function 0CCCE9Ah (S45i, "DrawChargemonitorScreen") is used function 0FF41E8h ("Word_2_Str") which translates numbers to string . Parameters (for 0FF41E8h): r15 - number of symbols of a string (fill "0"), r14:r13 - destination address, r12 - number (word). If I am not mistaken
  Reply With Quote
Old 09-22-2004, 07:17   #110 (permalink)
Freak Poster
 
Join Date: May 2003
Location: Russia, Ekaterinburg
Age: 44
Posts: 184
Member: 29316
Status: Offline
Thanks Meter: 0
sl45 have a random number's generator ?
  Reply With Quote
Old 09-22-2004, 09:49   #111 (permalink)
No Life Poster
 
lalo.lerry's Avatar
 
Join Date: Jan 2004
Location: Italy
Age: 49
Posts: 1,018
Member: 50673
Status: Offline
Thanks Meter: 2
@teachers:
Thanks all, but still unable.
Could you tell me a patch where this "string with variable numbers" is used?
Morover, I don't need to put it into a MesgBox but to show it as a string.
So string content should be stored as text (no string IDs) in a (RAM?) location and pointed by r15:r14... possible?

Last edited by lalo.lerry; 09-22-2004 at 10:03.
  Reply With Quote
Old 09-22-2004, 09:54   #112 (permalink)
No Life Poster
 
lalo.lerry's Avatar
 
Join Date: Jan 2004
Location: Italy
Age: 49
Posts: 1,018
Member: 50673
Status: Offline
Thanks Meter: 2
--- doble posted, sorry ----
  Reply With Quote
Old 09-29-2004, 17:41   #113 (permalink)
Junior Member
 
Join Date: Sep 2004
Age: 39
Posts: 14
Member: 81758
Status: Offline
Thanks Meter: 0
Hello
I'm trying to create my own menu ItemHandler, but it doesn't work
Please correct me if i tell something wrong:
I got those from analizing Currency converter
0xE76450 - menuReserveTextSpace
0xE7620E - menuPrepare
0xE75884 - setMenuButtons
0xE7058E - setMenuEntry

Entry creation sequence:
menuReserveTextSpace
. give: R13:R12=entry_pointer R14=max_text_len
. get: R5:R4=place_for_text
menuPrepare
. give: R13:R12=entry_pointer
. get: R5:R4=some_saved_pointer
pGetStringByID
. give: R12=StringID R14:R13=place_for_text
setMenuButtons
. give: R13:R12=entry_pointer R15:R14=soft_buttons_pointer
setMenuEntry:
. give_stack: stack[3:2]=entry_number stack[1:0]=menu_text
. give_regs: R13:R12=entry_pointer R15:R14=some_saved_pointer
return

I save i registers, reserve only 16 bytes on stack and clean everything up before return.
It just hangs. Am i missing something, or i just messed up the handler code?

PS. I don't create new menu, only change ItemHandler in Currency converter to sequence i've described. Nothing more. I use #20h for max_text_len and "Setup" text from strings table for every entry.
  Reply With Quote
Old 10-13-2004, 14:51   #114 (permalink)
Freak Poster
 
Join Date: May 2003
Location: Russia, Ekaterinburg
Age: 44
Posts: 184
Member: 29316
Status: Offline
Thanks Meter: 0
About use my LPE patch, in address C42Ah stored offset and in C42C stored page of address were parameters placed for use parameters use this hint (see my example from RBL)
Code:
paramplace		EQU 0C42Ah
rxord			EQU 0
batVord			EQU 2

;---loading addres where place parameters--
extp	#pag(paramplace),#2
mov	r12,pof(paramplace)           ;in r12-offset
mov	r13,pof(paramplace)+2       ;in r13-page
;----loading parameters-----
extp	r13,#2
movb	rl6,[r12+#batVord]
movb	rl7,[r12+#batVord+1]
mov	r13,r6
mov	r12,r7
  Reply With Quote
Old 11-08-2004, 19:15   #115 (permalink)
Freak Poster
 
misko903's Avatar
 
Join Date: Oct 2004
Location: Slovakia
Age: 41
Posts: 219
Member: 89407
Status: Offline
Thanks Meter: 0
hi all!
I got an idea:

new patch, combined with patch "only show java in surf fun".
I was create new directory JAVA in disk A: on my mobile.
don't you may create a patch, which opens this directory throught this Java in menu (its a little fake, i know, but i think its a good idea )

Antoine[KNet]

patch creator beginner
  Reply With Quote
Old 11-09-2004, 01:14   #116 (permalink)
No Life Poster
 
lalo.lerry's Avatar
 
Join Date: Jan 2004
Location: Italy
Age: 49
Posts: 1,018
Member: 50673
Status: Offline
Thanks Meter: 2
@misko:
This is a technical thread only, not a patch request one.
Please move your request from here to a proper place.
Thanks

Lalo
  Reply With Quote
Old 11-09-2004, 17:16   #117 (permalink)
Junior Member
 
Join Date: Oct 2004
Age: 54
Posts: 27
Member: 89010
Status: Offline
Thanks Meter: 0
Where does the phone starts?

Hi all
I need to create a patch that is called as soon as possible. The problem is, I don't know which is the first routine that is executed. I have seen some code that sets CP, SP, STKOV, but I have no idea who calls this.
I also found some code that sets up the Interrupt table, but this is too late.
Regards
  Reply With Quote
Old 11-12-2004, 19:09   #118 (permalink)
Freak Poster
 
Join Date: Jun 2004
Location: Russia, Zelenograd
Age: 35
Posts: 336
Member: 70080
Status: Offline
Thanks Meter: 2
Can I send inf to com port? Example for see this inf in terminal.
  Reply With Quote
Old 11-15-2004, 09:27   #119 (permalink)
Junior Member
 
Join Date: Oct 2004
Age: 54
Posts: 27
Member: 89010
Status: Offline
Thanks Meter: 0
COM port

To send the value of rl3 to port serial 0 (COM1), do:
mov S0TBUF, rl3
bclr S0TIR
another_loop:
jnb S0TIR, another_loop

Be carefull not to send too much data. 1000 bytes is fine, but 1000*1000 is too much.
  Reply With Quote
Old 11-23-2004, 20:55   #120 (permalink)
No Life Poster
 
trustkill's Avatar
 
Join Date: May 2003
Location: GERMANY
Age: 49
Posts: 980
Member: 27745
Status: Offline
Thanks Meter: 0
This is a tutorial how I solved my "problem" with the nice NSM_Selectable Patch:

Original patch

sfe d test.bin,27d2e0,28 a00000,p
Code:
org     0C7D2E0h

        mov     [-r0], r12
        extp    #36h, #1
        mov     r12, 96Ch
        jnb     r12.3, loc_C7D2F4
        mov     r12, [r0+]
        jmps    0C7h, 0D300h
loc_C7D2F4:
        mov     r12, [r0+]
        jmps    0C7h, 0D2FAh
loc_C7D2FA:
        calls   0C1h, 4A4Ch
        rets

loc_C7D300:
        calls   0C7h, 0D2D0h
        rets
sfe a test.txt p,8,a00000

0x27D2E0: 88C0D7403600F2FC
0x27D2E8: 6C099AFC033098C0
0x27D2F0: FAC700D398C0FAC7
0x27D2F8: FAD2DAC14C4ADB00
0x27D300: DAC7D0D2DB00

"My Patch" : (with jb instead of jnb)

jnb= jump if bit not set / jb = jump if bit set
Code:
org     0C7D2E0h

        mov     [-r0], r12
        extp    #36h, #1
        mov     r12, 96Ch
        jb      r12.3, loc_C7D2F4
        mov     r12, [r0+]
        jmps    0C7h, 0D300h
loc_C7D2F4:
        mov     r12, [r0+]
        jmps    0C7h, 0D2FAh
loc_C7D2FA:
        calls   0C1h, 4A4Ch
        rets

loc_C7D300:
        calls   0C7h, 0D2D0h
        rets
0x27D2E0: 88C0D7403600F2FC
0x27D2E8: 6C098AFC033098C0
0x27D2F0: FAC700D398C0FAC7
0x27D2F8: FAD2DAC14C4ADB00
0x27D300: DAC7D0D2DB00

What I dont understand is this:
jmps 0C7h, 0D2FAh
loc_C7D2FA:

because itīs useless (?)
  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
BB5 - Technical Discussion adihack Nokia Base Band 5 ( BB-5 ) 220 10-14-2011 05:31
x65 patching technical discussion Acidmrp x6x and x7x Flashpatching 42 10-10-2009 07:06
Iphone 3G Technical Discussion and SP Unlocking theory GraveSlayer iPhone 2 / iPhone 3G / iPhone 3GS 8 11-15-2008 06:04
Technical discussion sharp705sh celluniversal Sharp 0 05-17-2007 17:26
Technical discussion BB5 unlocking twisterfan Nokia Base Band 5 ( BB-5 ) 0 05-16-2007 19:36

 



All times are GMT +1. The time now is 20:51.



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.21521 seconds with 10 queries

SEO by vBSEO