[comp.sources.bugs] patches for the 68k disassembler

crash@tsc3b21.UUCP (Frank ) (01/16/88)

In trying to make the disassembler work I found the following changes.
The first was/is a big problem if the object/executable to be processed
has and entry point of other than zero.  The second was because of the
return values that my version of the subroutine returned and it may
not apply to your machine.
-------------------------------------------------------------
heur.c	::	line 297
	for (pos = 0;  pos < endt;)  {

				should be

	for (pos = mainfile.ef_entry;  pos < endt;)  {	/* %% used to be 'pos=0' */
		gette(&mainfile, pos, &tent);
		switch  (tent.t_type)  {
-------------------------------------------------------------
main.c	::	line 184
		par_round = ghex(arg) - 1;

				should be

		par_round = ghex(arg);
-------------------------------------------------------------

"Use the Source, Luke.  Feel it flow through your fingertips..."
-----
Frank (crash) Edwards
...!codas!usfvax2!{pdn,jc3b21}!tsc3b21!crash
TSC in Palm Harbor, FL
The Sweat Shop [with a 'C']
Phone:  (813) 785-0583  (voice)