From e897872679d5b8108b04d8381e3606483c687b54 Mon Sep 17 00:00:00 2001 From: Steve Fosdick Date: Thu, 15 Feb 2024 11:55:43 +0000 Subject: [PATCH] Fix missing NULL causing debugger to walk off end of register list. See: https://www.stardot.org.uk/forums/viewtopic.php?p=417065#p417065 --- src/z80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/z80.c b/src/z80.c index dd6bbf4d..f3c4eeb0 100644 --- a/src/z80.c +++ b/src/z80.c @@ -347,7 +347,7 @@ static int dbg_debug_enable(int newvalue) }; static const char *dbg_z80_reg_names[] = - { "A", "F", "BC", "DE", "HL", "IX", "IY", "SP", "PC" }; + { "A", "F", "BC", "DE", "HL", "IX", "IY", "SP", "PC", NULL }; enum { REG_A, REG_F, REG_BC, REG_DE, REG_HL, REG_IX, REG_IY, REG_SP, REG_PC