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