Added Singlestepping feature
This commit is contained in:
parent
1eb50d953d
commit
e4a05e27c7
@ -4,10 +4,12 @@
|
|||||||
#include <SFML/Window.h>
|
#include <SFML/Window.h>
|
||||||
|
|
||||||
extern float displayScale;
|
extern float displayScale;
|
||||||
|
extern int clocksteps;
|
||||||
|
|
||||||
extern void resetSystem();
|
extern void resetSystem();
|
||||||
extern void irq6502();
|
extern void irq6502();
|
||||||
extern void nmi6502();
|
extern void nmi6502();
|
||||||
|
extern void step6502();
|
||||||
extern void updateRenderStates();
|
extern void updateRenderStates();
|
||||||
extern void scanKeyboard();
|
extern void scanKeyboard();
|
||||||
|
|
||||||
@ -30,7 +32,6 @@ void pollEvents(sfRenderWindow *window){
|
|||||||
case sfKeyEscape:
|
case sfKeyEscape:
|
||||||
sfRenderWindow_close(window);
|
sfRenderWindow_close(window);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case sfKeyF2:
|
case sfKeyF2:
|
||||||
if (displayscale > 1) displayscale--;
|
if (displayscale > 1) displayscale--;
|
||||||
updateRenderStates();
|
updateRenderStates();
|
||||||
@ -42,6 +43,9 @@ void pollEvents(sfRenderWindow *window){
|
|||||||
case sfKeyF5:
|
case sfKeyF5:
|
||||||
resetSystem();
|
resetSystem();
|
||||||
break;
|
break;
|
||||||
|
case sfKeyF8:
|
||||||
|
for (int i = 0; i < clocksteps; i++) step6502();
|
||||||
|
break;
|
||||||
case sfKeyF12:
|
case sfKeyF12:
|
||||||
irq6502();
|
irq6502();
|
||||||
break;
|
break;
|
||||||
@ -55,6 +59,7 @@ void pollEvents(sfRenderWindow *window){
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case sfEvtKeyReleased:
|
case sfEvtKeyReleased:
|
||||||
|
// To tell keyboard.c, that no key is being pressed
|
||||||
currentKey = sfKeyUnknown;
|
currentKey = sfKeyUnknown;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user