[comp.os.minix] fixes for mdb

n62@np1.hep.nl (Klamer Schutte) (03/29/89)

mdb ( on minix-st only ) disassembles the instructions b??.s wrong:
It thinks always the long (medium ?) form is used.
Patch, compile, and this works.
(but there are some more bugs -- i will try to fix )

Klamer Schutte (.signature at end)

----------------------------------------------------------------------------
*** mdbdis.c~	Thu Feb 22 17:07:11 1988
--- mdbdis.c	Thu Mar 22 01:02:56 1989
***************
*** 310,316 ****
  		case 0x6:
  			ds = BFIELD(w,7,8);
  			printf("b%s.%c\t", cc[BFIELD(w,11,4)], ds ? 's' : 'w');
! 			if (m1) symbolic(gaddr+ds);
  			else reladdr('\0');
  			break;
  		case 0x7:
--- 310,316 ----
  		case 0x6:
  			ds = BFIELD(w,7,8);
  			printf("b%s.%c\t", cc[BFIELD(w,11,4)], ds ? 's' : 'w');
! 			if (ds) symbolic(gaddr+ds,'\0');
  			else reladdr('\0');
  			break;
  		case 0x7:
-- 
________________________________________________________________________________
Klamer Schutte			mcvax!nikhefh!n62	      n62@nikhefh.hep.nl