disassembly of 6803 code

Ludis Langens ludis at cruzers.com
Fri Sep 8 11:17:52 GMT 2000


Arnaud Westenberg wrote:
> 
> In a subthread before this one, someone pointed to the fact that a
> disassembly might "neglect" an offset, so when changing the source you
> might be addressing at the wrong index. Could you prevent this by
> supplying data/code addresses??

At some point you have to read and edit the disassembly by hand to fix
up these offsets.  There just isn't enough information in the raw object
code to convert it back to the original program.

For example, these two C code fragments likely generate the same code. 
A disassembler/decompiler won't be able to know which way the programmer
originally coded it.

{
struct {int a; int b;} foo, bar;
foo.a = 1; foo.b = 2;
bar = foo;
}

{
int fooa, foob, bara, barb;
fooa = 1; foob = 2;
bara = fooa; barb = foob;
}

-- 
Ludis Langens                               ludis (at) cruzers (dot) com
Mac, Fiero, & engine controller goodies:  http://www.cruzers.com/~ludis/


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




More information about the Diy_efi mailing list