Skip to content

Commit 128e2dc

Browse files
szaszgsbaldovi
authored andcommitted
Rearrange AY register and flags in the widget debugger
(fixes bug #482)
1 parent f56eeff commit 128e2dc

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* UI improvements:
99
* Timex: don't abort if the Timex dock cartridge image is not
1010
found (Alberto Garcia).
11+
* WidgetUI: rearrange AY register and Z80 flags in the debugger
12+
(Gergely Szasz).
1113

1214
2021-02-27 Philip Kendall <philip-fuse@shadowmagic.org.uk>
1315

ui/widget/debugger.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static void display_registers( void )
309309
show_register0( LC(36), LR(2), "IFF2", IFF2 );
310310
show_register2( LC(3), LR(3), "HL", HL );
311311
show_register2( LC(12), LR(3), "HL'", HL_ );
312-
widget_printstring_fixed( LC(20), LR(3), 5, "SZ5H3PNC" );
312+
widget_printstring_fixed( LC(18), LR(3), 5, "SZ5H3PNC" );
313313
show_register0( LC(36), LR(3), "HALTED", z80.halted );
314314
show_register1( LC(36), LR(4), "ULA", ula_last_byte() );
315315

@@ -319,12 +319,12 @@ static void display_registers( void )
319319
for( i = 0; i < 8; ++i )
320320
pbuf[i] = ( F & ( 0x80 >> i ) ) ? '1' : '0';
321321
pbuf[8] = 0;
322-
widget_printstring_fixed( LC(20), LR(4), 7, pbuf );
322+
widget_printstring_fixed( LC(18), LR(4), 7, pbuf );
323323

324324
capabilities = libspectrum_machine_capabilities( machine_current->machine );
325325

326326
if( capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_AY )
327-
show_register1( LC(37), LR(4), "AY",
327+
show_register1( LC(29), LR(4), "AY",
328328
machine_current->ay.current_register );
329329

330330
if( capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_128_MEMORY )

0 commit comments

Comments
 (0)