thirdparty/soloud/src/tools/tedsid2dump/tedmem.cpp
// "illegal" mode: when $FF13 points to an illegal ROM address
//  the current data on the bus is displayed
"illegal" mode: when $FF13 points to an illegal ROM address
the current data on the bus is displayed
" illegal " mode : when $FF13 points to an illegal ROM address the current data on the bus is displayed
inline void TED::illegalbank()
{
	unsigned char	chr = chrbuf[x];
	unsigned char	charcol = clrbuf[x];
	unsigned char	mask;
	unsigned char	*wbuffer = scrptr + hshift;
	if (charcol&0x80 && crsrblinkon)
		mask = 00;
	else {
		if (BadLine==1)
			mask = clrbuf[x];
		else if (BadLine==2)
			mask = chrbuf[x];
		else
			mask = Read(cpuptr->getPC());
	}
	if (chr&0x80)
		mask ^= 0xFF;
	if (crsrpos==((CharacterPosition+x)&0x3FF) && crsrblinkon)
		mask ^= 0xFF;
	wbuffer[0] = (mask & 0x80) ? charcol : mcol[0];
	wbuffer[1] = (mask & 0x40) ? charcol : mcol[0];
	wbuffer[2] = (mask & 0x20) ? charcol : mcol[0];
	wbuffer[3] = (mask & 0x10) ? charcol : mcol[0];
	wbuffer[4] = (mask & 0x08) ? charcol : mcol[0];
	wbuffer[5] = (mask & 0x04) ? charcol : mcol[0];
	wbuffer[6] = (mask & 0x02) ? charcol : mcol[0];
	wbuffer[7] = (mask & 0x01) ? charcol : mcol[0];
}
inline void TED :: illegalbank ( ) { unsigned char chr = chrbuf [ x ] ; unsigned char charcol = clrbuf [ x ] ; unsigned char mask ; unsigned char * wbuffer = scrptr + hshift ; if ( charcol & 0x80 && crsrblinkon ) mask = 00 ; else { if ( BadLine == 1 ) mask = clrbuf [ x ] ; else if ( BadLine == 2 ) mask = chrbuf [ x ] ; else mask = Read ( cpuptr -> getPC ( ) ) ; } if ( chr & 0x80 ) mask ^= 0xFF ; if ( crsrpos == ( ( CharacterPosition + x ) & 0x3FF ) && crsrblinkon ) mask ^= 0xFF ; wbuffer [ 0 ] = ( mask & 0x80 ) ? charcol : mcol [ 0 ] ; wbuffer [ 1 ] = ( mask & 0x40 ) ? charcol : mcol [ 0 ] ; wbuffer [ 2 ] = ( mask & 0x20 ) ? charcol : mcol [ 0 ] ; wbuffer [ 3 ] = ( mask & 0x10 ) ? charcol : mcol [ 0 ] ; wbuffer [ 4 ] = ( mask & 0x08 ) ? charcol : mcol [ 0 ] ; wbuffer [ 5 ] = ( mask & 0x04 ) ? charcol : mcol [ 0 ] ; wbuffer [ 6 ] = ( mask & 0x02 ) ? charcol : mcol [ 0 ] ; wbuffer [ 7 ] = ( mask & 0x01 ) ? charcol : mcol [ 0 ] ; }
"illegal" mode: when $FF13 points to an illegal ROM address
the current data on the bus is displayed
" illegal " mode : when $FF13 points to an illegal ROM address the current data on the bus is displayed