Skip to content

Commit

Permalink
Fix missing NULL causing debugger to walk off end of register list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Feb 15, 2024
1 parent 04ecb58 commit e897872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/z80.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e897872

Please sign in to comment.