wxemuarm.cpp
// prints 32 bit register passed as unsigned integer
prints 32 bit register passed as unsigned integer
prints 32 bit register passed as unsigned integer
char * Armcore::fMprintbin(unsigned int binval, char *dispstr) {
	unsigned int index = 0x80000000u;
	char displaystring[] = "00000000000000000000000000000000";
	displaystring[33] = '\0';
	for (int ii=31;ii>=0;ii--) {
		if((index & binval) >0 ) {
			displaystring[31-ii] = '1';
		}
		index = index >> 1;
	}
	strcpy(dispstr, displaystring);
	return dispstr;
}
char * Armcore :: fMprintbin ( unsigned int binval , char * dispstr ) { unsigned int index = 0x80000000u ; char displaystring [ ] = " " ; displaystring [ 33 ] = ' \0 ' ; for ( int ii = 31 ; ii >= 0 ; ii -- ) { if ( ( index & binval ) > 0 ) { displaystring [ 31 - ii ] = ' ' ; } index = index >> 1 ; } strcpy ( dispstr , displaystring ) ; return dispstr ; }
prints 32 bit register passed as unsigned integer
prints 32 bit register passed as unsigned integer