dz80/dissz80.c
/*
	void AddToDisUnknown(char *Comment) 

	Handles the dumping of an unknown opcode sequence
*/
void AddToDisUnknown(char *Comment)
Handles the dumping of an unknown opcode sequence
void AddToDisUnknown ( char * Comment ) Handles the dumping of an unknown opcode sequence
void AddToDisUnknown(DISZ80 *d, char *Comment)
{
	int 	i, numOpCodes;
	char	buf[64];
	if (d->currentPass != DPASS_WRITE)
		return;
	AddToDisTabDB(d);
	numOpCodes = abs(d->PC - d->lastPC);
	d->PC = d->lastPC;
	d->hexDisBuf[0] = 0;			
	for (i = 0; i < numOpCodes; i++)
		{
		Make8BitNum(d, buf, GetNextOpCode(d));
		if (i < (numOpCodes-1))
			strcat(buf, ", ");
		AddToDis(d, buf);
		}
	if (Comment == NULL)
		AddToDisComment(d, "Unknown opcode");
	else
		AddToDisComment(d, Comment);
	return;
}
void AddToDisUnknown ( DISZ80 * d , char * Comment ) { int i , numOpCodes ; char buf [ 64 ] ; if ( d -> currentPass != DPASS_WRITE ) return ; AddToDisTabDB ( d ) ; numOpCodes = abs ( d -> PC - d -> lastPC ) ; d -> PC = d -> lastPC ; d -> hexDisBuf [ 0 ] = 0 ; for ( i = 0 ; i < numOpCodes ; i ++ ) { Make8BitNum ( d , buf , GetNextOpCode ( d ) ) ; if ( i < ( numOpCodes - 1 ) ) strcat ( buf , " " ) ; AddToDis ( d , buf ) ; } if ( Comment == NULL ) AddToDisComment ( d , " " ) ; else AddToDisComment ( d , Comment ) ; return ; }
void AddToDisUnknown(char *Comment)
Handles the dumping of an unknown opcode sequence
void AddToDisUnknown ( char * Comment ) Handles the dumping of an unknown opcode sequence
/* We're going to rewind back to the start of the bad opcode, so clear the hex stream dump */