thirdparty/soloud/src/tools/tedsid2dump/tedmem.cpp
// renders hires text with reverse (128 chars)
renders hires text with reverse (128 chars)
renders hires text with reverse ( 128 chars )
inline void TED::hi_text()
{
    unsigned char	chr;
	unsigned char	charcol;
	unsigned char	mask;
	unsigned char	*wbuffer = scrptr + hshift;
	charcol=clrbuf[x];
	chr=chrbuf[x];
	if ((charcol)&0x80 && !crsrblinkon)
		mask = 00;
	else
		mask = cset[((chr&0x7F)<<3)|VertSubCount];
	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 :: hi_text ( ) { unsigned char chr ; unsigned char charcol ; unsigned char mask ; unsigned char * wbuffer = scrptr + hshift ; charcol = clrbuf [ x ] ; chr = chrbuf [ x ] ; if ( ( charcol ) & 0x80 && ! crsrblinkon ) mask = 00 ; else mask = cset [ ( ( chr & 0x7F ) << 3 ) | VertSubCount ] ; 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 ] ; }
renders hires text with reverse (128 chars)
renders hires text with reverse ( 128 chars )
// get the actual physical character column