PDA

View Full Version : G3nolite2.0 scripts



asgaardro
10-05-2004, 01:58 AM
@all
i have 3410 and i whant to inject to my menu a slide show routine. can any one give a opinon of this code.


Name = update_screen
Code = B5F01C051C0E20002154F751FC0B1C311C28BDF0
BL = 0x0a -> to_screen

this is from a script that inject in a 3310 a slideshow and i think it wotk fine with 3410 but when run scripts it says variable to_screen unkown.
how can i declare this variable??
this variable must be implemented by nokia???
in another scrips i found this variable MALLOC is this the keyword for pointers???
can any one hlp??
there is any way to reverse engineering the code to see the asm source??
i know only asm and i whant hlp
thx :-?

NokDoc
10-05-2004, 06:01 PM
Hi,

G3n0lite does know how to search some predefined names for the most common types.

Those U not have there, or it cannot find, U have to define Urself in the gsc script to use them.

U possibly need to search and define a pattern in 3410 style for the 'to_Screen' function as it is in a 3410, while it not seems to find it.

Look at the stuff with the [PATTERN] in the demo script files.

ps, MALLOC is 'just' a name I guess, which I think mean Memory Allocation.

NokDoc

asgaardro
10-05-2004, 10:43 PM
thx sir.
i found the hex for to_screen function in 3410 and i made a gsc with all routines for making my own slideshow in 3410 but i have one prblem now
HOW CAN CREATE MY OWN 5E0 ID??.For what pattern should i search??
MALLOC is like /setfaid routine
look at this result from g3nolite from 3310 v5.45 for better understanding my ideea



----------------------------------
searching for the malloc/eeprom routines
----------------------------------
n_malloc: 0009A5D0
read_eeprom: 000F0100
write_eeprom: 000F00D0
calc_eeprom_chk: 00088102

----------------------------------
patching to_screen for inverted display
----------------------------------
invert_1: 000843EA
invert_2: 0008440A
send_lcd_data: 001309FC

Can u help my with the start and the and adress of the function in a nokia 3310 flash??like g3nolite does when he is locate a specific function
maybe i'll find this code in my 3410 and finally i'll have my own call display timer.
in mr yak script MALLOC variable is defined in those routines.[malloc/eeprom routines]

NokDoc
10-05-2004, 10:55 PM
Hi,

Nothing to do with faid, Alloc is reserving memory in ram.

The problem is, in Ur 3410 the pattern which should find it, doesnot find it.

Possibly while it differs too much from regular types.

If U know where that specific function is in Ur 3410, U can copy some bytes from there and create Ur own Alloc3410 pattern.

The part U look at, is in the [CODE] area, from there these functions from patterns are being called.

05E0: Once U know one function start address, it doesn't seems hard to find the whole table too I hope?

Seach for that address+1, like eg: 0FAC00 > search for '002FAC01'

NokDoc

asgaardro
11-05-2004, 12:25 AM
sir can u help me with 3310 pattern for alloc???
beacuse i don't know where to search.
and regarding 5e0 table i'll try tommanrow and i'll informe u
THX FOR REPLAY

asgaardro
11-05-2004, 12:45 AM
sir if i don't find the 5e0 table in 3410 can u tell me can i use *#sim0clock# to launch my slideshow???

NokDoc
11-05-2004, 03:14 PM
Hi,

Alloc pattern for 3410:
B5F04932220A700A2110180DD10025013513112801001F05
FFFFFF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

3310-633 Alloc is at 9a5d0

Task table 3310-633 starts at 123028.
Task table 3410-530 starts at 2a77b8.

How to use *#sim0clock# is been shown many times before.

Please study those examples.

NokDoc

asgaardro
11-05-2004, 10:42 PM
thx sir but i a same error in my call_duration script can u help me
variable MALLOC not known
variable PRINT_TEXT not known
variable FREE not known
i'll atch the script with my mod for 3410 maybe u'll give me an ideea
when try to search the pattern g3nolite is crashes.

NokDoc
12-05-2004, 01:01 AM
Hi,

DEMO: In nHexR I wanted to add a function which used an existing function called 'delay'


[CODE]
Name = nHexR
Code = B5FF2009.....
BL = 0x42 -> DELAY

G3n0lite didn't find that, I got wrong BL values, so I defined my own delay:

[PATTERN]
name = delay
pattern = 084046c046c046c046c046c046c046c046c046c046c046c03801d1f246f7
mask = ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
searchback = N

>> To activate the active search for it, I added this too:

loc: delay = delay

Do the same things for the functions U experienced Ur errors with.

I hope the example was clear, while I ain't making the file for U.

NokDoc