summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-04 23:28:26 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-04 23:28:26 +0000
commita08ee7dc825192d933d836514252e09bbcf313dc (patch)
tree0392c028a3fcb2595bf5a90d52f7adc71983eb9b /src/main.c
parent6a86fc4668ce7e213330bb78aff45c578e159f54 (diff)
Devel snapshot - still doesn't work
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index c97aab3..ce331f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
SPECWritePort,
SPECReadPort,
SPECReadForDisassem,
- NULL);
+ SPECGetLabel);
GFXInit();
@@ -95,13 +95,11 @@ int main(int argc, char *argv[])
Z80GetState(z80,&s1);
Z80SingleStep(z80);
-
Z80GetState(z80,&s2);
- if (s2.PC>0x3fff)
+ if (s2.PC==0)
{
- printf("PC > 0x3fff - from 0x%4.4x\n",s1.PC);
- return 0;
+ printf("PC zero - prev %4.4x\n",s1.PC);
}
if (trace)
@@ -115,17 +113,17 @@ int main(int argc, char *argv[])
switch (e->key.keysym.sym)
{
case SDLK_ESCAPE:
- if (e->key.state==SDL_RELEASED)
+ if (e->key.state==SDL_PRESSED)
quit=TRUE;
break;
case SDLK_F11:
- if (e->key.state==SDL_RELEASED)
+ if (e->key.state==SDL_PRESSED)
MemoryMenu(z80);
break;
case SDLK_F12:
- if (e->key.state==SDL_RELEASED)
+ if (e->key.state==SDL_PRESSED)
trace=!trace;
break;
@@ -136,8 +134,6 @@ int main(int argc, char *argv[])
}
}
- SDL_Quit();
-
return EXIT_SUCCESS;
}