|
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 . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source |
| LinkBack | Thread Tools | Display Modes |
08-13-2004, 08:14 | #61 (permalink) |
No Life Poster Join Date: Mar 2002 Location: -[r0]- Age: 53
Posts: 834
Member: 9891 Status: Offline Thanks Meter: 2 | I also have no getFileSize() entry-point yet. But you can put very big size value in r15 (fileRead), and I think r4 will set to the real size value (you will read that file right? not only to check his size?). If you only want to check size, maybe you can use fileSeek (0xDFB868) or fileStat (0xDFF6AA) ... but I don't know their parameters (but only this, r12=fileHandle)... ps: - I can not install ICQ (it is firewalled), but Yahoo!Messanger. Maybe, better if we discuss more using that media? |
08-13-2004, 10:17 | #62 (permalink) | |
Freak Poster Join Date: May 2003 Location: Russia, Ekaterinburg Age: 44
Posts: 184
Member: 29316 Status: Offline Thanks Meter: 0 | Quote:
another question, when i load the bin file whith this metod (Fileopen, fileread,fileclose) and try to play melody, phone is turned off, where is the trouble (i check, melody is loaded fine)? or file buffer not read ? If i plaice melody manualy (trought debugger), all work fine | |
08-19-2004, 07:55 | #63 (permalink) |
Freak Poster Join Date: Jun 2004 Location: Russia, Zelenograd Age: 35
Posts: 336
Member: 70080 Status: Offline Thanks Meter: 2 | please, write calls: 1) check dictaphone 2) if not playing - send play to dictaphone need calls to use in java Last edited by Seklth; 08-19-2004 at 10:08. |
08-19-2004, 13:04 | #64 (permalink) |
No Life Poster Join Date: Jan 2004 Location: Italy Age: 49
Posts: 1,018
Member: 50673 Status: Offline Thanks Meter: 2 | @MASTER: I've a question: I'm making a patch to show AM-PM hour clock, and I want to add a modified character for AM and PM, but till now I can insert only ASCII character,so... how to insert different characters form standard ASCII ones (for S45i)? |
08-20-2004, 04:51 | #65 (permalink) |
No Life Poster Join Date: Mar 2002 Location: -[r0]- Age: 53
Posts: 834
Member: 9891 Status: Offline Thanks Meter: 2 | Non standard ASCII code There are two different non-standard ASCII code: 1/ for code below than space (0x20) and greather than 0x7F 2/ using UNICODE (2 bytes). I don't know exactly which ones is used by your AM/PM modification. Maybe you can write a test patch (to get the correct character and code), and get unusefull single byte character to be modified (not the UNICODE ones). Or maybe, you can also use V_Klay keyboard Layout feature to test them??? rizapn |
08-20-2004, 06:45 | #66 (permalink) |
Junior Member Join Date: Dec 2003 Location: Beijing,China
Posts: 12
Member: 46843 Status: Offline Thanks Meter: 0 | About output unicode I write a function like DrawASCIIText, you can use it to output unicode string. Code: DrawWString: mov [-r0], r9 mov [-r0], r8 mov [-r0], r6 sub r0, #24h ; '$' mov [-r0], r15 mov [-r0], r14 mov r14, r12 mov r15, r13 mov r12, #1Eh add r12, r0 and r12, #3FFFh mov r13, DPP1 calls 0C1h,07CF4h add r0, #4 mov r6, #1 mov [-r0], r6 mov r12, [r0+30h] mov [-r0], r12 mov r9, [r0+30h] mov r8, [r0+2Eh] mov [-r0], r9 mov [-r0], r8 mov r13, #0 mov [-r0], r13 mov r12, #0Ah add r12, r0 and r12, #3FFFh mov r13, DPP1 mov r14, #24h add r14, r0 and r14, #3FFFh mov r15, DPP1 calls 0C1h, 04A4Ch add r0, #0Ah mov r12, r0 and r12, #3FFFh mov r13, DPP1 calls 0C1h, 0400Ah mov r12, r0 and r12, #3FFFh mov r13, DPP1 calls 0C1h, 02F2Ah add r0, #24h mov r6, [r0+] mov r8, [r0+] mov r9, [r0+] rets Code: mov [-r0], #fontStyle mov [-r0], #pag(WString) mov [-r0], #pof(WString) mov r12, #X ; relatif position to r14 mov r13, #Y mov r14, #drawAreaWidth mov r15, #drawAreaHeight calls drawString add r0, #6 rets ;-------------------------------------------------------------------; WString: dw pof(String), pag(String), 05h String: dw 04h,30h,31h,32h,33h Code: struct WString{ BUF * pBuf; int nBufCount; //sizeof(BUF)/sizeof(WCHAR) } struct BUF{ int nSZlen; WCHAR sz[nBufCount-1]; } Last edited by coollang; 08-20-2004 at 07:51. |
08-21-2004, 02:25 | #69 (permalink) |
No Life Poster Join Date: Jan 2004 Location: Italy Age: 49
Posts: 1,018
Member: 50673 Status: Offline Thanks Meter: 2 | @MASTER: My patch just add a character in time string (and switch time to 12 hours format), using built-in show time routine. I can easily add an ASCII character (yes, I know Siemens letter code isn't stricktly an ASCII one) but I would like not to modify any of them becuase someone could use it, so I'm trying to use a non ASCII character... Anyway my first release will use two modifed ASCII ones. @collang: Thanks for routine but I don't need to draw a new string, just add one character to an existing one. Morover, I think you are referring to SL45, not S45i... Thank you anyway! |
08-24-2004, 06:02 | #70 (permalink) |
No Life Poster Join Date: Jan 2004 Location: Italy Age: 49
Posts: 1,018
Member: 50673 Status: Offline Thanks Meter: 2 | @MASTER: May I know: What is the real Siemens code? I've seen it's neither strictly ASCII nor UNICODE... and how can we add "UNICODE" support for call logging and similar patches? Thanks Lalo |
08-24-2004, 06:39 | #71 (permalink) | |
Insane Poster Join Date: Feb 2003
Posts: 71
Member: 22759 Status: Offline Thanks Meter: 0 | Quote:
P.S. The unicode string can be taken from address 0F2742h, but there the line contains incoming call icons (home/work/etc), but the "pure" line for write to a log (in UTF8 format) is required. p.s. sorry for my english | |
08-24-2004, 06:55 | #72 (permalink) |
No Life Poster Join Date: Mar 2002 Location: -[r0]- Age: 53
Posts: 834
Member: 9891 Status: Offline Thanks Meter: 2 | UNICODE *) Yes, it happened also in SL45iv56 (address 0008:2C56 for incoming, and 0008:2B9A for outgoing). *) For call logging, maybe the easiest way to support UNICODE is saving all data in the UNICODE format. So, the file will be UNICODE file. I don't know how to write a UNICODE character in a normal (single byte) text file. In Siemens string, the combination of ASCII and UNICODE is supported. So, not all character need to be converted to UNICODE format (saving much space). rizapn |
08-24-2004, 07:58 | #73 (permalink) | |
Insane Poster Join Date: Feb 2003
Posts: 71
Member: 22759 Status: Offline Thanks Meter: 0 | Quote:
| |
08-24-2004, 08:06 | #74 (permalink) |
No Life Poster Join Date: Mar 2002 Location: -[r0]- Age: 53
Posts: 834
Member: 9891 Status: Offline Thanks Meter: 2 | @ntcn: Yes, I knew that. That's why I wrote: "In Siemens string, the combination of ASCII and UNICODE is supported. So, not all character need to be converted to UNICODE format (saving much space)." ... What I was trying to say is : "I don't know how to create a text file (call logging is about to create a file right?) which has ASCII and UNICODE chars mixed ... ", so, creating a UNICODE file is easier ... rizapn |
08-24-2004, 08:19 | #75 (permalink) | |
Insane Poster Join Date: Feb 2003
Posts: 71
Member: 22759 Status: Offline Thanks Meter: 0 | Quote:
Sorry for such quantity of questions successively.. | |
Bookmarks |
| |
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 |
|