diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-09-07 23:46:31 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-09-07 23:46:31 +0000 |
commit | 01d6960d6d6d980e2ca3919c5b231705f3f3f6db (patch) | |
tree | b35addaabb15142b3f95e75264fb887e533412a9 /src/memmenu.c | |
parent | 9a74f4fd96d014f755ea4311fb843509c115fd51 (diff) |
Added new Z80 core
Diffstat (limited to 'src/memmenu.c')
-rw-r--r-- | src/memmenu.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/memmenu.c b/src/memmenu.c index 95429f9..81a8646 100644 --- a/src/memmenu.c +++ b/src/memmenu.c @@ -229,19 +229,19 @@ int DisplayZ80State(Z80State *s, int y, Uint32 col) static int EnterAddress(const char *prompt, Z80 *z80, Z80Word *w) { const char *p; - char *error; + char *error="NOT YET IMPLEMENTED"; long l; p=GUIInputString(prompt ? prompt : "Address?",""); if (*p) { - if (!Z80Expression(z80,p,&l,&error)) + if (1) /*(!Z80Expression(z80,p,&l,&error))*/ { GUIMessage(eMessageBox, "ERROR","%s",error ? error:"Invalid expression"); - free(error); + /* free(error); */ } else { @@ -486,7 +486,7 @@ static int Instruction(Z80 *z80, Z80Val data) { long l; - if (Z80Expression(z80,bpoint.expr[f],&l,NULL)) + if (0) /*(Z80Expression(z80,bpoint.expr[f],&l,NULL))*/ { if (l) brk=bpoint.expr[f]; @@ -731,15 +731,14 @@ static void PlaybackTrace(Z80 *z80) static void DoAddBreakpoint(Z80 *z80) { const char *expr; - char *error; - long l; + char *error=NULL; expr=GUIInputString("Expression?",""); if (!*expr) return; - if (!Z80Expression(z80,expr,&l,&error)) + if (0) /*(!Z80Expression(z80,expr,&l,&error))*/ { if (error) { @@ -749,7 +748,6 @@ static void DoAddBreakpoint(Z80 *z80) else { GUIMessage(eMessageBox,"ERROR","Expression is invalid"); - free(error); } } else |