Unknown opcode in disassemble()

Pavel Curtis (pavel@parc.xerox.com)
Mon, 25 Mar 1996 11:26:01 PST


Brian Buchanan writes:
>   9: 112 002 023           *** Unknown extended opcode *** 23
> 
> Line 9 is what threw me... I dunno if that's dangerous or just something
> that wasn't updated in disassemble().  This is under version 1.8.0p2.

It isn't dangerous, but it can be confusing.  Nick's fix is almost correct, but
he left out a comma.  Find these lines in disassemble.c and add the line marked
with an arrow (leaving out the arrow):

struct mapping	ext_mappings[] = {
    {EOP_RANGESET,	"RANGESET"},
    {EOP_LENGTH,	"LENGTH"},
    {EOP_PUSH_LABEL,	"PUSH_LABEL"},			<---
    {EOP_SCATTER,	"SCATTER"},
    {EOP_EXP,		"EXPONENT"},

Sorry for the oversight...

	Pavel