From c1d084c70d3fa63eb787b57c5c6c3f511c95a357 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 16 Jan 2004 02:28:10 +0000 Subject: Added options to toggle individual breakpoints --- src/memmenu.c | 158 +++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 101 insertions(+), 57 deletions(-) (limited to 'src/memmenu.c') diff --git a/src/memmenu.c b/src/memmenu.c index 41a18b3..0d5053f 100644 --- a/src/memmenu.c +++ b/src/memmenu.c @@ -63,6 +63,7 @@ static const char ident_h[]=ESPEC_MEMMENU_H; typedef struct { int no; + int *active; char **expr; } Breakpoint; @@ -86,7 +87,7 @@ typedef struct /* ---------------------------------------- STATIC DATA */ static FILE *trace=NULL; -static Breakpoint bpoint={0,NULL}; +static Breakpoint bpoint={0,NULL,NULL}; static const char *brk=NULL; static int lodged=FALSE; @@ -98,9 +99,21 @@ static int Instruction(Z80 *z80, Z80Val data); /* ---------------------------------------- PRIVATE FUNCTIONS */ +static int BreaksActive(void) +{ + int f; + int ret=FALSE; + + for(f=0;f