I'VE FINALLY FIGURED IT OUT!!!
You know the problem with the Source Coder not being able to create the labels in the correct position?
HERE'S THE SOLUTION!!!
Code:
When complete, all required labels will be in their correct positions.I know this works because I wrote an oncalc source coder, (only does RESETBIT, and commands) that uses this same technique.
CLASS DISMISSED!!!
You know the problem with the Source Coder not being able to create the labels in the correct position?
HERE'S THE SOLUTION!!!
Code:
First - During the main part of the decompiling, put a label in front of
every command where it is in the position of the hex code.
(for ex. in C9EF4045 the first command would be RET, and
since it begins at 9D95h it would be 9D95h:
RET
Second - Also while decompiling, any labels used by commands
should be put in a string to be set aside.Like in 21959D you
would store 9D95 into the separate string.
Last - After the decompiling is complete, have a second step that
compares all labels in the source with labels in the string of
used labels you set aside in step 2.If they aren't in it, have
them removed from the source.
When complete, all required labels will be in their correct positions.I know this works because I wrote an oncalc source coder, (only does RESETBIT, and commands) that uses this same technique.
CLASS DISMISSED!!!