PDA

View Full Version : Clock`s screensaver "add menu" code generator



Zandis
10-02-2004, 01:55 AM
I made script that generates the add_menu code from afterpatching results to krisha`s clock screen saver. Can anybody test it and post bugs here please? Thanx.
http://www.smigi.edu.lv/~kva/clock.php

Zandis
10-02-2004, 01:57 AM
Forgot one thing - Last line in afterpatching results must be "greetz", not "enter"

Crux
10-02-2004, 02:58 AM
seems to be a nice idea.

but its not working for me :(

Tongz
10-02-2004, 05:39 AM
It's response.
Bad result.

This data I paste into textarea.

----------------------------------------------
processing:
'inserts an analog and digital fullscreen clock'
by 'krisha'
----------------------------------------------


this patches an analog and a digital fullscreen clock to your nokia cellular phone.
after a toggled time of no keypress the clock is activated.
the clock is disabled, while you are in the menu or you have a call.
it is also disabled when the netgraph or the dataviewer is toggled on.

create a own menu to toggle it. the IDs are printed while patching.
you can use your own backgrounds if u want to and switch between 4 different backgrounds!
you can change inphone the fonts for the digital clock via menu.

thx to:
katha, my girlfriend
g3gg0
digicroxx
nok5rev
nokdoc
and of cause all others i forgot!

krisha is reachable @: icq 93857183 & www.chrisi.de & [email protected]
please don't disturb me with shit. search a forum instead!!!
don't tell that this is your patch... it's copyrighted by me :)

now beginning to patch...


get_time:
located at: 0x000CB9C4
[searching back to entry point]
- func_start: 000CB9A0
- func_end: 000CBA38
----------------------------------

currentstate:
located at: 0x000BC8CA
----------------------------------

2dec:
located at: 0x000D89DC
----------------------------------
ldr at: 00081E0C
ldr at: 00081E0E
ldr at: 000BC8CE
own_get_ram:
FATAL: not found - sorry
----------------------------------
function name own_get_ram not found in flash, will create it
found 0048 bytes for function own_get_ram at 0x0012F740
- bl: 0012F74E -> 00099F04: F7 6A FB D9
- bl: 0012F75A -> 000F1168: F7 C1 FD 05
own_set_ram:
FATAL: not found - sorry
----------------------------------
function name own_set_ram not found in flash, will create it
found 0048 bytes for function own_set_ram at 0x0012F770
- bl: 0012F77E -> 00099F04: F7 6A FB C1
- bl: 0012F78A -> 000F1168: F7 C1 FC ED
own_get_config_nibble:
FATAL: not found - sorry
----------------------------------
function name own_get_config_nibble not found in flash, will create it
found 0044 bytes for function own_get_config_nibble at 0x0012F7A0
- bl: 0012F7B6 -> 000EF758: F7 BF FF CF
own_set_config_nibble:
FATAL: not found - sorry
----------------------------------
function name own_set_config_nibble not found in flash, will create it
found 0074 bytes for function own_set_config_nibble at 0x0012F7CC
- bl: 0012F7E6 -> 000EF758: F7 BF FF B7
- bl: 0012F80A -> 000EF728: F7 BF FF 8D
- bl: 0012F80E -> 00087A2A: F7 58 F9 0C

found 0052 bytes for function creditz at 0x0012F818

own_get_keypress:
FATAL: not found - sorry
----------------------------------
function name own_get_keypress not found in flash, will create it

found 0032 bytes for function own_get_keypress at 0x0012F84C
a own clear_lcd_ram 'cause i don't like nokia's original :)

own_clear_lcd:
FATAL: not found - sorry
----------------------------------
function name own_clear_lcd not found in flash, will create it

found 0036 bytes for function own_clear_lcd at 0x0012F86C
- bl: 0012F876 -> 000F1168: F7 C1 FC 77
- bl: 0012F882 -> 000F1168: F7 C1 FC 71
creating the menu IDs you have to use...

-----------------------------------------
locating functions for the 5E0 table
-----------------------------------------
5e0_prt_action_1:
located at: 0x000E4808
- func_start: 000E4808
- func_end: 000E4818
----------------------------------
5e0_prt_action_2:
located at: 0x000E4B3A
- func_start: 000E4B3A
- func_end: 000E4B4A
----------------------------------
5e0_disp_val:
located at: 0x000E4B4C
- func_start: 000E4B4C
- func_end: 000E4B5A
----------------------------------
5e0_call_func:
located at: 0x000E481A
- func_start: 000E481A
- func_end: 000E4B38
----------------------------------
ldr at: 000E480A
ldr at: 000E480E
ldr at: 000E4B3C
ldr at: 000E4834
ldr at: 000E4842
ldr at: 000E4846
ldr at: 000E4B4E


-----------------------------------------
-> The 5E0 Table has 1496 bytes, and 0xba entries in it

-----------------------------------------
# PPM is located (via MCU info) at offset 00140000
checking for space in PPM...
# - No CODE chunk found...


--------> 5e0 Table is at 00321F68

found 0012 bytes for function clock_off at 0x0012F890
- bl: 0012F896 -> 0012F7CC: F7 FF FF 99
5E0 ID# BB | clock_off

found 0012 bytes for function clock_10s at 0x0012F89C
- bl: 0012F8A2 -> 0012F7CC: F7 FF FF 93
5E0 ID# BC | clock_10s

found 0012 bytes for function clock_20s at 0x0012F8A8
- bl: 0012F8AE -> 0012F7CC: F7 FF FF 8D
5E0 ID# BD | clock_20s

found 0012 bytes for function clock_30s at 0x0012F8B4
- bl: 0012F8BA -> 0012F7CC: F7 FF FF 87
5E0 ID# BE | clock_30s

found 0012 bytes for function clock_1min at 0x0012F8C0
- bl: 0012F8C6 -> 0012F7CC: F7 FF FF 81
5E0 ID# BF | clock_1min

found 0012 bytes for function clock_2min at 0x0012F8CC
- bl: 0012F8D2 -> 0012F7CC: F7 FF FF 7B
5E0 ID# C0 | clock_2min

found 0012 bytes for function clock_5min at 0x0012F8D8
- bl: 0012F8DE -> 0012F7CC: F7 FF FF 75
5E0 ID# C1 | clock_5min

found 0012 bytes for function clock_10min at 0x0012F8E4
- bl: 0012F8EA -> 0012F7CC: F7 FF FF 6F
5E0 ID# C2 | clock_10min

found 0012 bytes for function clock_20min at 0x0012F8F0
- bl: 0012F8F6 -> 0012F7CC: F7 FF FF 69
5E0 ID# C3 | clock_20min

found 0012 bytes for function clock_30min at 0x0012F8FC
- bl: 0012F902 -> 0012F7CC: F7 FF FF 63
5E0 ID# C4 | clock_30min

found 0020 bytes for function clock_bg1 at 0x0012F908
- bl: 0012F90C -> 0012F7A0: F7 FF FF 48
- bl: 0012F916 -> 0012F7CC: F7 FF FF 59
5E0 ID# C5 | clock_bg1

found 0024 bytes for function clock_bg2 at 0x0012F91C
- bl: 0012F920 -> 0012F7A0: F7 FF FF 3E
- bl: 0012F92E -> 0012F7CC: F7 FF FF 4D
5E0 ID# C6 | clock_bg2

found 0024 bytes for function clock_bg3 at 0x0012F934
- bl: 0012F938 -> 0012F7A0: F7 FF FF 32
- bl: 0012F946 -> 0012F7CC: F7 FF FF 41
5E0 ID# C7 | clock_bg3

found 0024 bytes for function clock_bg4 at 0x0012F94C
- bl: 0012F950 -> 0012F7A0: F7 FF FF 26
- bl: 0012F95E -> 0012F7CC: F7 FF FF 35
5E0 ID# C8 | clock_bg4

found 0020 bytes for function menu_font1 at 0x0012F964
- bl: 0012F968 -> 0012F7A0: F7 FF FF 1A
- bl: 0012F972 -> 0012F7CC: F7 FF FF 2B
5E0 ID# C9 | menu_font1

found 0024 bytes for function menu_font2 at 0x0012F978
- bl: 0012F97C -> 0012F7A0: F7 FF FF 10
- bl: 0012F98A -> 0012F7CC: F7 FF FF 1F
5E0 ID# CA | menu_font2

found 0024 bytes for function menu_font3 at 0x0012F990
- bl: 0012F994 -> 0012F7A0: F7 FF FF 04
- bl: 0012F9A2 -> 0012F7CC: F7 FF FF 13
5E0 ID# CB | menu_font3

found 0024 bytes for function menu_font4 at 0x0012F9A8
- bl: 0012F9AC -> 0012F7A0: F7 FF FE F8
- bl: 0012F9BA -> 0012F7CC: F7 FF FF 07
5E0 ID# CC | menu_font4

found 0020 bytes for function clock_digital at 0x0012F9C0
- bl: 0012F9C4 -> 0012F7A0: F7 FF FE EC
- bl: 0012F9CE -> 0012F7CC: F7 FF FE FD
5E0 ID# CD | clock_digital

found 0020 bytes for function clock_analog at 0x0012F9D4
- bl: 0012F9D8 -> 0012F7A0: F7 FF FE E2
- bl: 0012F9E2 -> 0012F7CC: F7 FF FE F3
5E0 ID# CE | clock_analog

found 0028 bytes for function show_creditz at 0x0012F9E8
- bl: 0012F9EA -> 0012F84C: F7 FF FF 2F
- bl: 0012F9F2 -> 00082A3A: F7 53 F8 22
- bl: 0012F9FA -> 000DE270: F7 AE FC 39
5E0 ID# CF | show_creditz
sinus routine using sinus table, 'cause arm chips doesn't like floats

sinus:
FATAL: not found - sorry
----------------------------------
function name sinus not found in flash, will create it

found 0200 bytes for function sinus at 0x0012FA04

found 0032 bytes for function bmp2lcdram at 0x0012FACC
- bl: 0012FAE4 -> 00081C56: F7 52 F8 B7

found 0052 bytes for function draw_number_of_font at 0x0012FAEC
- bl: 0012FB0E -> 0012FACC: F7 FF FF DD
now we need 4 fine background images for the clock. if u want to change, here are the addresses
background 1:

found 0504 bytes for function clockbg1 at 0x0012FB20
background 2:

found 0504 bytes for function clockbg2 at 0x0012FD18
background 3:

found 0504 bytes for function clockbg3 at 0x0012FF10
background 4:

found 0504 bytes for function clockbg4 at 0x00130108

found 0012 bytes for function clockbginfo1 at 0x00130300

found 0012 bytes for function clockbginfo2 at 0x0013030C

found 0012 bytes for function clockbginfo3 at 0x00130318

found 0012 bytes for function clockbginfo4 at 0x00130324
if you want to change the fonts. create numbers 0 - 9 with 16x24 pixel
and the colon with 10x24 pixel and put the pics in sequence at the following addresses!
every number must have 50 bytes. fill up with 0x00's...
font one:

found 0550 bytes for function digitfont1 at 0x00130330
font two:

found 0550 bytes for function digitfont2 at 0x00130558
font three:

found 0550 bytes for function digitfont3 at 0x00130780
font four:

found 0550 bytes for function digitfont4 at 0x001309A8

found 0256 bytes for function show_clock_analog at 0x00130BD0
- bl: 00130BD2 -> 0012FACC: F7 FE FF 7B
- bl: 00130BD6 -> 000CB9A0: F7 9A FE E3
- bl: 00130BEA -> 000EF9D8: F7 BE FE F5
- bl: 00130BF2 -> 000EF9D8: F7 BE FE F1
- bl: 00130BFA -> 000EF9D8: F7 BE FE ED
- bl: 00130C10 -> 0012FA04: F7 FE FE F8
- bl: 00130C2C -> 00082334: F7 51 FB 82
- bl: 00130C44 -> 0012FA04: F7 FE FE DE
- bl: 00130C60 -> 00082334: F7 51 FB 68
- bl: 00130C7C -> 0012FA04: F7 FE FE C2
- bl: 00130CA6 -> 00082334: F7 51 FB 45
- bl: 00130CB4 -> 00081DE0: F7 51 F8 94

found 0148 bytes for function show_clock_digital at 0x00130CD0
- bl: 00130CD8 -> 000CB9A0: F7 9A FE 62
- bl: 00130CEC -> 000EF9D8: F7 BE FE 74
- bl: 00130CF4 -> 000EF9D8: F7 BE FE 70
- bl: 00130CFC -> 000EF9D8: F7 BE FE 6C
- bl: 00130D06 -> 000D89DC: F7 A7 FE 69
- bl: 00130D0A -> 0012F86C: F7 FE FD AF
- bl: 00130D18 -> 0012FAEC: F7 FE FE E8
- bl: 00130D22 -> 0012FAEC: F7 FE FE E3
- bl: 00130D2C -> 0012FAEC: F7 FE FE DE
- bl: 00130D34 -> 000D89DC: F7 A7 FE 52
- bl: 00130D3E -> 0012FAEC: F7 FE FE D5
- bl: 00130D48 -> 0012FAEC: F7 FE FE D0
- bl: 00130D50 -> 00081DE0: F7 51 F8 46

found 0244 bytes for function clockmain at 0x00130D64
- bl: 00130D68 -> 0012F7A0: F7 FE FD 1A
- bl: 00130D74 -> 0012F740: F7 FE FC E4
- bl: 00130D7E -> 00099F04: F7 69 F8 C1
- bl: 00130D88 -> 000F1168: F7 C0 F9 EE
- bl: 00130D90 -> 0012F770: F7 FE FC EE
- bl: 00130D98 -> 0012F84C: F7 FE FD 58
- bl: 00130DA0 -> 000CB9A0: F7 9A FD FE
- bl: 00130DA6 -> 000CB9A0: F7 9A FD FB
- bl: 00130DC6 -> 0012F740: F7 FE FC BB
- bl: 00130DD6 -> 0012F740: F7 FE FC B3
- bl: 00130DF2 -> 0012F7A0: F7 FE FC D5
- bl: 00130E00 -> 0012F7A0: F7 FE FC CE
- bl: 00130E14 -> 00130BD0: F7 FF FE DC
- bl: 00130E1C -> 0012F7A0: F7 FE FC C0
- bl: 00130E2E -> 00130CD0: F7 FF FF 4F

found 0012 bytes for function task0hook at 0x00130E58
- bl: 00130E5E -> 00130D64: F7 FF FF 81
Trying to find suitable code at 0x000E11BA
oh, cool.. a BL! => relocateable!
offset: 0x000E11BA
Relocatable code found at 0x000E11BA
- bl: 00130E5A -> 000C1DD2: F7 90 FF BA
- bl: 000E11BA -> 00130E58: F0 4F FE 4D
this tricky thing was done =)
if u like me or my patch tell me & spend some money *ggg*
greetz

gab0r
10-02-2004, 03:41 PM
Zandis said, you must remove the last enter from the pasted stuff. the last word must be "greetz" without enter in the end.
it's works correctly for me.

gab0r

Zandis
10-02-2004, 05:48 PM
gab0r, thats right, it working 4 me too.

Tongz
11-02-2004, 05:31 AM
sorry i'm not look message befor. :-P
but now output message it's blank.

Zandis
11-02-2004, 09:12 PM
If this not working for someone, try now, I have moddified a little.

Zandis
11-02-2004, 09:42 PM
Tongz, can u tell me please what phone model did u patched?

Zandis
11-02-2004, 09:44 PM
And can u give me that flash file please?

Tongz
12-02-2004, 06:03 AM
Tongz, can u tell me please what phone model did u patched?
I'm use 3310 v6.07 . now i test it's worked. thanks alot. :)

Zandis
13-02-2004, 05:57 PM
Can anybody knows, that this generated menu works on 8210?

ShadoW2004
23-04-2004, 08:27 AM
There are Bad Result :sad:

samer2
29-04-2004, 01:07 PM
i can't download script