@@ -509,38 +509,38 @@ static void DEBUGRenderCmdLine(int x, int width, int height) {
509509
510510static void DEBUGRenderZeroPageRegisters (int y ) {
511511#define LAST_R 15
512- int reg = 0 ;
513- int y_start = y ;
514- char lbl [6 ];
515- while (reg < DBGMAX_ZERO_PAGE_REGISTERS ) {
516- if (((y - y_start ) % 5 ) != 0 ) { // Break registers into groups of 5, easier to locate
517- if (reg <= LAST_R )
518- sprintf (lbl , "R%d" , reg );
519- else
520- sprintf (lbl , "x%d" , reg );
521-
522- DEBUGString (dbgRenderer , DBG_ZP_REG , y , lbl , col_label );
523-
524- int reg_addr = 2 + reg * 2 ;
525- int n = real_read6502 (reg_addr + 1 , true, currentBank )* 256 + real_read6502 (reg_addr , true, currentBank );
526-
527- DEBUGNumber (DBG_ZP_REG + 5 , y , n , 4 , col_data );
528-
529- if (oldRegChange [reg ] != NULL )
530- DEBUGString (dbgRenderer , DBG_ZP_REG + 9 , y , oldRegChange [reg ], col_data );
531-
532- if (oldRegisterTicks != clockticks6502 ) { // change detection only when the emulated CPU changes
533- oldRegChange [reg ] = n != oldRegisters [reg ] ? "*" : " " ;
534- oldRegisters [reg ]= n ;
535- }
536- reg ++ ;
537- }
538- y ++ ;
539- }
540-
541- if (oldRegisterTicks != clockticks6502 ) {
542- oldRegisterTicks = clockticks6502 ;
543- }
512+ int reg = 0 ;
513+ int y_start = y ;
514+ char lbl [6 ];
515+ while (reg < DBGMAX_ZERO_PAGE_REGISTERS ) {
516+ if (((y - y_start ) % 5 ) != 0 ) { // Break registers into groups of 5, easier to locate
517+ if (reg <= LAST_R )
518+ sprintf (lbl , "R%d" , reg );
519+ else
520+ sprintf (lbl , "x%d" , reg );
521+
522+ DEBUGString (dbgRenderer , DBG_ZP_REG , y , lbl , col_label );
523+
524+ int reg_addr = 2 + reg * 2 ;
525+ int n = real_read6502 (reg_addr + 1 , true, currentBank )* 256 + real_read6502 (reg_addr , true, currentBank );
526+
527+ DEBUGNumber (DBG_ZP_REG + 5 , y , n , 4 , col_data );
528+
529+ if (oldRegChange [reg ] != NULL )
530+ DEBUGString (dbgRenderer , DBG_ZP_REG + 9 , y , oldRegChange [reg ], col_data );
531+
532+ if (oldRegisterTicks != clockticks6502 ) { // change detection only when the emulated CPU changes
533+ oldRegChange [reg ] = n != oldRegisters [reg ] ? "*" : " " ;
534+ oldRegisters [reg ]= n ;
535+ }
536+ reg ++ ;
537+ }
538+ y ++ ;
539+ }
540+
541+ if (oldRegisterTicks != clockticks6502 ) {
542+ oldRegisterTicks = clockticks6502 ;
543+ }
544544}
545545
546546// *******************************************************************************************
0 commit comments