* Copyright (c) 1994-1998.
*
* $RCSfile: Disassembler.c,v $
- * $Revision: 1.10 $
- * $Date: 1999/11/01 18:19:40 $
+ * $Revision: 1.12 $
+ * $Date: 1999/12/07 11:49:11 $
* ---------------------------------------------------------------------------*/
#include "Rts.h"
return pc;
}
+static InstrPtr disInfo16 ( StgBCO *bco, InstrPtr pc, char* i )
+{
+ StgWord x = bcoInstr16(bco,pc);
+ StgInfoTable* info = bcoConstInfoPtr(bco,x);
+ pc+=2;
+ /* ToDo: print contents of infotable */
+ fprintf(stderr,"%s ",i);
+ printPtr(stgCast(StgPtr,info));
+ return pc;
+}
+
static InstrPtr disConstPtr ( StgBCO *bco, InstrPtr pc, char* i )
{
StgInt o = bcoInstr(bco,pc++);
return disInt(bco,pc,"ALLOC_PAP");
case i_ALLOC_CONSTR:
return disInfo(bco,pc,"ALLOC_CONSTR");
+ case i_ALLOC_CONSTR_big:
+ return disInfo16(bco,pc,"ALLOC_CONSTR_big");
case i_MKAP:
return disIntInt(bco,pc,"MKAP");
case i_MKAP_big:
return disNone(bco,pc,"ccall_stdcall_IO");
case i_raise:
return disNone(bco,pc,"primRaise");
+ case i_takeMVar:
+ return disNone(bco,pc,"primTakeMVar");
default:
{
const AsmPrim* p = asmFindPrimop(i_PRIMOP2,op);