summaryrefslogtreecommitdiff
path: root/source/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/main.c b/source/main.c
index 355bf31..76c6f43 100644
--- a/source/main.c
+++ b/source/main.c
@@ -279,7 +279,7 @@ static void DebugDisassembler(Z80 *cpu)
while(SK_GetBareEvent(&ev))
{
- if (!ev.pressed)
+ if (ev.pressed)
{
switch(ev.key)
{
@@ -303,7 +303,7 @@ static void DebugDisassembler(Z80 *cpu)
done = TRUE;
break;
- case SK_PAD_A:
+ case SK_PAD_B:
{
char addrstr[32] = {0};
@@ -377,7 +377,7 @@ static void DebugMemory(Z80 *cpu)
while(SK_GetBareEvent(&ev))
{
- if (!ev.pressed)
+ if (ev.pressed)
{
switch(ev.key)
{
@@ -401,7 +401,7 @@ static void DebugMemory(Z80 *cpu)
done = TRUE;
break;
- case SK_PAD_A:
+ case SK_PAD_B:
{
char addrstr[32] = {0};
@@ -578,14 +578,14 @@ static void DebugCPU(Z80 *cpu)
FB_EndFrame();
- if (SK_KeyPressed(SK_PAD_B))
+ if (SK_KeyPressed(SK_PAD_X))
{
Z80SingleStep(cpu);
}
while(SK_GetBareEvent(&ev))
{
- if (!ev.pressed)
+ if (ev.pressed)
{
switch(ev.key)
{
@@ -608,7 +608,7 @@ static void DebugCPU(Z80 *cpu)
done = TRUE;
break;
- case SK_PAD_A:
+ case SK_PAD_B:
Z80SingleStep(cpu);
break;