Re-compiling code

rrauscher at nni.com rrauscher at nni.com
Thu Jan 25 12:46:05 GMT 2001


I'd recommend doing an assemble from the disassembly. By
reassembling from the disassembly, there should not be
a need to hand fix addresses. The branch labels may look
like an address, but they should be a label. If followed
by a colon ':' they are a label. By making the changes
to the disassembly it is easy to keep track of things.

The other thing to do is to create the assembly with the
option to create a listing. Then check the very end of the
listing and check that the interrupt vector table is in the
correct place. This is a double check that things did not get
shifted too much.


The other way to do it is to create a separate patch that
overlays the area to be changed. Assemble this and use
something like s19_pat.exe to overlay it into the binary.

BobR.


>I have a binary and uncommented disassembly of an ecm's code.  I need to
>add four lines of code in one area, and I have another area where I can
>remove up to 6 lines of code.  Up till this point, I've been changing one
>or 2 lines of code which are only a few lines apart, and if there are any
>jump or branch statements in between, I've corrected them by hand.  This
>time there are large sections of code in between the changes, and I don't
>want to check everything manually.  How can I make these changes a little
>less painful?
>
>Shannen
>----------------------------------------------------------------------------

----------------------------------------------------------------------------
To unsubscribe from gmecm, send "unsubscribe gmecm" (without the quotes)
in the body of a message (not the subject) to majordomo at lists.diy-efi.org




More information about the Gmecm mailing list