I want to study it.
I lost it.
Do you remember the structure of it? What language did you use?
It doesn't seem very complicated.
Gosh, it was years ago.
I used Delphi Pascal 7 I think, and the structure huh... was really bad.
It's not a very complicated program as a base, it's just reading and reformatting text to and from arrays of bytes.
Without asking me anything specific, I might as well rewrite the damn thing just to answer you.
That isn't necessary, a pseudocode approximation works, abstracted from FFT opcodes.
(http://i.imgur.com/pdpXsUq.gif)
Quote from: nitwit on November 22, 2014, 10:43:52 pm
It doesn't seem very complicated.
What's your experience in reverse engineering?
LOCATE EVENTS
Load event file.
Create text file.
Go to event scripts in event file (assuming the event scripts are located only in a specific location in the file).
DECODE AND WRITE
If byte at current address equals opcode n, then:
{
Decode opcode n and parameter bytes (if any) to english language equivalents.
Write English language equivalents to text file.
Append newline character.
Move current address to byte after the last parameter byte.
}
LOOPING MECHANISM
Not sure how to do this, or if it's necessary. Should I loop through the IF THEN ELSE block (which will be huge) for every byte until I read the end of the file? If the event script is only located at a certain point in the file then I need to detect the start and the length of the event scripting, then I can set up a WHILE loop for currentAddress != scriptStart + scriptLength. Actually I think that's right, a FOR loop wouldn't work because there is no set length of event scripts in a given block. The variable length of parameter bytes means that in a space of 100 bytes I could have 100 opcodes or fewer.
I answered my own question.