PDA

View Full Version : Nokix-> Patterns + mini Quiz *g*



deadspot
26-11-2005, 05:17 AM
pls. anyone who can translate this one...

http://board.gsm-modding.de/thread.php?threadid=2100

10x in adv

NokDoc
26-11-2005, 07:00 AM
Hi,

I'll try, I know few German:
========================================================

>> Mit Patterns kann man such masken eingeben so kann man bestimmte hexwerte oder sogar komplette funktionen ganz leicht im Flash finden das ganze ist in Rexx geschrieben und eigentlich ganz easy zu verstehen ich geb euch mal nen Beispiel:

With patterns U can insert search patterns which enables U to find certain hex values or even complete functions pretty easily.
This all is written in Rexx and actually very easy to understand, I will give U an example now:

>> Zeile 1: hab ich nicht ganz verstanden, habs einfach von nen anderen Script übernommen, bedeutet aber, denke ich, das die Parameter die man in Nokix eingibt an das Script übergeben und in der Variable "arguments" gespeichert werden.

Line 1: I didn't understood very well, I just took that part from other scripts.
I think it means that the parameters U will insert there will be used and stored as 'variable arguments' in the script,

>> Zeile 3: Speichert die Parameter in der Variable arguments in der Variable code.

Line 3: Stores the parameters in the variable arguments to the variable code.

>> Zeile 5: Ist ne If´abfrage und überprüft ob in code ein Hexwert ODER(Logisches ODER) kein Wert gespeichert ist. Ist das der Fall wird ausgegeben
-> Zeile 6. Ist das nicht der fall Zeile weiter bei Zeile 11.

Line 5: Is an 'If..' statement which tests if in code is a hexvalue OR no value is stored.
If in that case .... will be given... -> line 6
If not, continue with line 11.

>> Zeile 6: Gibt den Schriftzug "# no hex values in parameter box" aus.

Line 6: Give the string "# no hex values in parameter box" Message box.

>> Zeile 7: Beendet das Script und gibt keinen Wertzurück (dafür steht die 0)

Line 7: Will end the script without a returning value. (that's what the 0 is about)

>> Zeile 8: Beendet die If abfrage.

Ends the (If..) statement.

>> Zeile 10: Ist für die If abfrage wichtig und sagt wenn der fall bei Zeile 5 nicht eintritt mach hier weiter.

Is important for the statement and will tell U if the case at line 5 will not be valid, it continues here.

>> Zeile 11: Beendet die If abfrage.

Ends the (If..) statement.

>> Zeile 5 bis 11 ist eine If abfrage um zu prüfen das kein falscher Wert in die Parameter box eingeben wird womit die funktion nix anfangen kann.

Line 5 till 11 is a statement for testing if there are no faulty values in the parameter box which the function couldn't work with.

>> Zeile 13: Hier fängt das Interessante an mit patt legt ihr fest nach welchen wert im Hex gesucht werden soll. Das ganze muss aber als datentyp "char" der funktion vorliegen damit sie damit was anfangen deshalb das x2c vor der klammer. Ausgesprochen heißt das hexs to char.

Here the interesting part starts, with patt U define which values U will be searching for.
This all has to be entered as data type 'Char', ...?????
That's why this x2c in front, this is being called Hexa-Decimal To Characters.

>> Zeile 14: So mit mask könnt ihr die suche einschränken. Sagen wir mal Ihr gebt den parameter 12345 ein. Und in Mask FF0F0 dann sagt ihr der Funktion 12X4X sind feste werte und da wo ein X ist muss der wert nicht stimmen sondern kann anders sein. Das ist wichtig weil viele Routinen in verschiedenen Nokias sich ähneln aber variable werte haben. So kann man ein Script z.B. für alle dct-3 Phones anwenden.

Line 14: So with mask U can shorten Ur search.
Let's assume U will insert the parameter '12345', and in the mask 'FF0F0'
Then the function will use the '12x4x' as static values and at the locations of the 'x' the values doesn't have to match exact, they may have other values.

That is very important while in many routines Nokia may use very alike codes, but they might have slight differences (variables) at these locations.

This way U can use one script for every (many) dct3 phone types.

>> Zeile 15: Hier kommt die findfunc funktion die die Werte von patt undmask übernehmen um die suche durchzuführen. Das ergebniss wird in der variable "rc" gespeichert.

Line 15: Here comes the FindFunction Function which take over the values from Patt & mask and pass it to the search itself.
The conclusions will be saved in the variable 'rc'.

>> Zeile 16-17: Hier kommt wieder eine If abfrage. Und um hier mal Leben einzuhauchen seit ihr gefragt wer kann mir sagen was diese Zeilen und die Zeile 20 machen?

Line 16-17: Here's again a statement.
To bring life in here I wanna ask all who can tell me what these lines mean and what the line 20 will do?

>> Ich weiß es aber wisst Ihr es auch?

I know, but do U?

Grüße

Spanish
========================================================

Good Luck.

NokDoc

mestrini
26-11-2005, 11:50 AM
It's a way to find routines' addresses in DCT3 flashes using a nokix script.
Just fill the parameters box with the func values and nokix will search for it ;)

how do you think i found so many patterns used in locate.rx ?? :lol: i made my own sort of that script


cheers

NokDoc
29-11-2005, 06:48 PM
how do you think i found so many patterns used in locate.rx ??

Hi,

Since U had the English translation now... :D

NokDoc