-char TextTmp[255];
-int row, column, TextLength;
-
-gtk_clist_freeze( GTK_CLIST( memclist ) );
- for ( row = 0; row < 16; row++ ) {
- sprintf( TextTmp, "%.4X", Address );
- gtk_clist_set_text( GTK_CLIST( memclist ), row, 0, TextTmp );
-
- for ( column = 0; column < 16; column++ ) {
- sprintf( TextTmp, "%.2X", ( int ) cpu8051_ReadD( Address + column ) );
- gtk_clist_set_text( GTK_CLIST( memclist ), row, column + 1, TextTmp );
- }
-
- TextLength = 0;
- for ( column = 0; column < 16; column++ ) {
- if ( ( ( int ) cpu8051_ReadD( Address + column ) >= 32 ) && ( ( int ) cpu8051_ReadD( Address + column ) <= 126 ) )
- TextLength += sprintf( &TextTmp[ TextLength ], "%c", cpu8051_ReadD( Address + column ) );
- else TextLength += sprintf( &TextTmp[ TextLength ], "." );
- }
- gtk_clist_set_text( GTK_CLIST( memclist ), row, 17, TextTmp );
-
- Address += 16;
- }
-
-gtk_clist_select_row( GTK_CLIST( memclist ), 0, 0 );
-gtk_clist_thaw( GTK_CLIST( memclist ) );
+ char TextTmp[255];
+ int row, column, TextLength;
+
+ gtk_clist_freeze( GTK_CLIST( memclist ) );
+ for ( row = 0; row < 16; row++ ) {
+ sprintf( TextTmp, "%.4X", Address );
+ gtk_clist_set_text( GTK_CLIST( memclist ), row, 0, TextTmp );
+
+ for ( column = 0; column < 16; column++ ) {
+ sprintf( TextTmp, "%.2X", ( int ) cpu8051_ReadD( Address + column ) );
+ gtk_clist_set_text( GTK_CLIST( memclist ), row, column + 1, TextTmp );
+ }
+
+ TextLength = 0;
+ for ( column = 0; column < 16; column++ ) {
+ if ( ( ( int ) cpu8051_ReadD( Address + column ) >= 32 ) && ( ( int ) cpu8051_ReadD( Address + column ) <= 126 ) )
+ TextLength += sprintf( &TextTmp[ TextLength ], "%c", cpu8051_ReadD( Address + column ) );
+ else TextLength += sprintf( &TextTmp[ TextLength ], "." );
+ }
+ gtk_clist_set_text( GTK_CLIST( memclist ), row, 17, TextTmp );
+
+ Address += 16;
+ }
+
+ gtk_clist_select_row( GTK_CLIST( memclist ), 0, 0 );
+ gtk_clist_thaw( GTK_CLIST( memclist ) );