|
![]() |
|
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. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Register | FAQ | Donate | Forum Rules | ★. iPhone Unlock .★ | -= JTAG BOOM =- | .: Nokia Unlock :. | Search | Today's Posts | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #2 (permalink) |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Jul 2003 Location: HUN Age: 32
Posts: 207
Member: 34029 Status: Offline Thanks: 0
Thanked 0 Times in 0 Posts
| Hi Everyone! I haven't tried miniGPS jet! I'm hungarian, is there any hungarian city bitmaps in the web for SL45's miniGPS? I know that without a city bitmap it won't work!? Am I right? Can somebody tell me what miniGPS worth? It's really a good and useful positioning system in SL45 or just a plaything? Thx for answering! |
|
| | #3 (permalink) |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: May 2003 Location: Russia, Ekaterinburg Age: 33
Posts: 184
Member: 29316 Status: Offline Thanks: 0
Thanked 0 Times in 0 Posts
| 2misko903: try this ![]() Code: $SEGMENTED
$MOD167
NAME hello_module
HELLO_PATCH_ADDRESS EQU 0E0CA10h
ReadEEPROM EQU 0C22F3Eh
WriteEEPROM EQU 0C22F92h
Drawimage EQU 0C122ECh
IsCallInProgress EQU 0CCC64Ch
IsAtFullService EQU 0A24c18h
longtohexstr EQU 0C78032h
strstr EQU 0C785F0h
drawstring EQU 0D6A358h
FileOpen EQU 0DFA73Eh ;r13:r12 = pointer to ASCIIZ filename
;r4 = Open result, if success r4=fileHandle, if failed, r4=FFFF
FileRead EQU 0DFABAEh ;r12=fileHandle r15=size r14:r13 = pointer to buffer
FileClose EQU 0DFC570h ;r12=fileHandle
LoadHelper EQU 0E47FF0h ;r5:r4 - pointer to afterloading func
memset EQU 0C78416h ;Fill memory r13:r12, size r15 whith r14 code
FillRect EQU 0C0E5D0h ;R12-Color (1-black, 0-white) (on stack) r12-X r13-Y r14-width r15 -height
CI EQU 039D86h
buff EQU 080000h
stringbuff EQU 080002h
cellnamebuff EQU stringbuff+6
filebuff EQU cellnamebuff+20
b_flag EQU 0D3E1Bh
BlockSize EQU 1024
hello_patch SECTION CODE WORD AT 0E0D360h
patch_proc PROC NEAR
mov [-r0],r12
mov [-r0],r4
mov [-r0],r5
mov [-r0],r6
;---------------Load CellID and comprare with Saed Cell ID----------------
extp #pag(b_flag),#1
movb rl4,pof(b_flag)
cmpb rl4,#0
jmpa cc_z,endprog
extp #pag(ci),#1
mov r4,pof(ci)
ror r4,#8
extp #pag(buff),#1
mov r5,pof(buff)
cmp r4,r5
jmpr cc_z,nochange
;---------------Saving CellID if Cell is change---------
extp #pag(buff),#1
mov pof(buff),r4
;---------------Loading CellID name from EEPROM--------
mov r12, #0
mov [-r0], r12
mov [-r0], r12
mov [-r0], r12
mov r12,#BlockSize
mov [-r0], r12
mov r12, #5169
mov r13, #pof(filebuff)
mov r14, #pag(filebuff)
mov r15, #0
calls seg(ReadEEPROM),sof(ReadEEPROM)
add r0,#8
;---------------Converting CellID from HEX to string----------
mov r4,#0
mov r12,#2
mov [r0],r12
mov r12,#pof(stringbuff)
mov r13,#pag(stringbuff)
extp r13,#1
movb [r12+#4],rl4 ;end of string identify
mov r14,#pof(buff)
mov r15,#pag(buff)
calls seg(longtohexstr),sof(longtohexstr)
mov r4,#0
extp #pag(stringbuff),#1
mov pof(stringbuff)+4,r4
;---------------Finding CellID in CellID Namelist
mov r12,#pag(filebuff)
mov r13,#pof(filebuff)
extp #pag(stringbuff),#2
mov r4,pof(stringbuff)
mov r5,pof(stringbuff)+2
find: extp r12,#1
movb rl6,[r13]
cmpb rl6,#0FFh
jmpr cc_z,nochange1 ;CellName not found
cmpb rl4,rl6
jmpr cc_nz,nextfind
extp r12,#1
movb rl6,[r13+#1]
cmpb rh4,rl6
jmpr cc_nz,nextfind
extp r12,#1
movb rl6,[r13+#2]
cmpb rl5,rl6
jmpr cc_nz,nextfind
extp r12,#1
movb rl6,[r13+#3]
cmpb rh5,rl6
jmpr cc_nz,nextfind
jmpr cc_uc,addrfound
nextfind: add r13,#1
jmpr cc_uc,find
;---------------Copy CellID name from CellID List to buffer
addrfound: add r13,#5
mov r14,#pof(stringbuff)
CopyLoop: extp r12,#1
movb rl6,[r13]
cmpb rl6,#0Dh ; End CellName?
jmpr cc_z,EndCopyLoop
extp #pag(stringbuff),#1
movb [r14],rl6
add r13,#1
add r14,#1
jmpr cc_uc,CopyLoop
EndCopyLoop: mov r4,#0
extp #pag(stringbuff),#1
movb [r14],rl4 ;make end of string identify
;---------------some NOP's for other programs
nochange1: nop
nop
nop
nop
nop
nop
;---------------Printing CellID Name on main screen
NoChange: ;---------------Erase old string from screen----------------
mov r12,#0
mov [-r0],r12
extp #pag(coord),#2
mov r15,pof(coord)
mov r13,pof(coord)+2
mov r14,#101
mov r12,#0
calls seg(FillRect),sof(FillRect)
add r0,#2
mov r14,#pof(stringbuff)
mov r15,#pag(stringbuff)
mov r4,#08 ;font style
mov [-r0],r4
mov [-r0],r15
mov [-r0],r14
extp #pag(coord),#2
mov r15,pof(coord)
mov r13,pof(coord)+2
mov r14,#101
mov r12,#0
calls seg(drawstring),sof(drawstring)
add r0,#6
endprog: mov r6,[r0+]
mov r5,[r0+]
mov r4,[r0+]
mov r12,[r0+]
mov [-r0],r9
mov [-r0],r8
rets
saveEEPROM: mov [-r0],r12
;---------------Filling FileBuffer FF byte------------------
mov r13,#pag(filebuff)
mov r12,#pof(filebuff)
mov r15,#BlockSize+2
mov r14,#0FFh
calls seg(memset),sof(memset)
;---------------Load CellID list from MMC--------------
mov r13,#pag(filename)
mov r12,#pof(filename)
calls seg(FileOpen),sof(FileOpen)
cmp r4,#0FFFFh
jmpr cc_z,endload
mov r12,r4
mov [-r0],r12
mov r14,#pag(filebuff)
mov r13,#pof(filebuff)
mov r15,#BlockSize
calls seg(fileread),sof(fileread)
mov r12,[r0+]
calls seg(fileclose),sof(fileclose)
;---------------Saving CellIDlistto EEPROM-------------
mov r12, #0
mov [-r0], r12
mov [-r0], r12
mov [-r0], r12
mov r12,#BlockSize
mov [-r0], r12
mov r12, #5169
mov r13, #pof(filebuff)
mov r14, #pag(filebuff)
mov r15, #0
calls seg(WriteEEPROM),sof(WriteEEPROM)
add r0, #8
endload: mov r12,[r0+]
and r12,#3FFFh
rets
filename: db 'a:\ci.txt',0
coord: db 09,00,07,00
patch_proc ENDP
hello_patch ENDS
END |
|
| | #5 (permalink) |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: May 2003 Location: Russia, Ekaterinburg Age: 33
Posts: 184
Member: 29316 Status: Offline Thanks: 0
Thanked 0 Times in 0 Posts
| yes is for sl45i as i know for s55 function Epprom (read/write) Fileread and draw string already founded and known. this is all function needed to port this patch to s55 |
|
| | #6 (permalink) |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Oct 2004 Location: Slovakia Age: 30
Posts: 219
Member: 89407 Status: Offline Thanks: 0
Thanked 0 Times in 0 Posts
| @DeadManS really good news! but i dont know where these func. are. i am going to ask former S55 patchers thanks for that information |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| thread | Thread Starter | Forum | Replies | Last Post |
| VB fbus source code, maybe this can help sum ppl | Zianna | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 2 | 10-07-2006 11:43 |
| New 2 programming and need some source codes?? | Salami1_1 | GSM Mobile Links | 0 | 07-10-2001 21:13 |
| source code to nokia software | pks | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 9 | 04-13-2001 23:36 |
| Changing Source Codes | Cyberdog | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 2 | 03-29-2001 11:55 |
| Source Code from NokiaTool by PRO | Cyberdog | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 1 | 03-28-2001 21:32 |