summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-13 02:21:06 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-13 02:21:06 +0000
commit44ffbe36a8e7eaab7d7851bb79f229c4383c6545 (patch)
tree5ec706c58e940047021c0fd8665e96c6d3d50c58 /src/main.c
parent25bc35fbadebbf28eed3c89978e435d2df557b42 (diff)
Added breakpoints to memory menu and added extra GUI items. Plus general fixes.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e25ce75..75352f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -80,6 +80,8 @@ int main(int argc, char *argv[])
z80=Z80Init(SPECWriteMem,
SPECReadMem,
+ SPECWriteWord,
+ SPECReadWord,
SPECWritePort,
SPECReadPort,
SPECReadForDisassem,
@@ -103,6 +105,8 @@ int main(int argc, char *argv[])
while(!quit)
{
+ const char *brk;
+
Z80State s1,s2;
Z80GetState(z80,&s1);
@@ -121,6 +125,12 @@ int main(int argc, char *argv[])
GFXEndFrame(FALSE);
}
+ if ((brk=Break()))
+ {
+ GUIMessage(eMessageBox,"BREAKPOINT","%s",brk);
+ MemoryMenu(z80);
+ }
+
while((e=GFXGetKey()))
{
switch (e->key.keysym.sym)
@@ -132,7 +142,8 @@ int main(int argc, char *argv[])
case SDLK_F1:
if (e->key.state==SDL_PRESSED)
- GUIMessage("HELP",
+ GUIMessage(eMessageBox,
+ "HELP",
"ESC - Quit \n"
"F1 - Help \n"
"F8 - Select tape file for loading\n"