Added function key functions

This commit is contained in:
0xmac 2024-12-17 13:10:12 +01:00
parent c2a41c824c
commit 308fe5ba50

View File

@ -10,8 +10,36 @@
#define ROMLOC 0xC000 /* ROM Page Location */
#define BACKCOLOR sfBlack
#define FPS 60
#define CPUSPEED 4096 * 16
#define PREAMBLE "LS7 Emulator by Gabriel Weingardt.\nLicense: GPL v.3+\n\n"
#define HELP "Usage: LS7Emulator [options] file\n\n\
Options: Type Default Desc\n\
--help Show this menu\n\
--help-keys Show emulator key functions\n\
--cpuspeed [int] 100000 CPU Speed given in Herz. KHz and MHz annotations like 1KHz are supported\n\
--scale [float] 2.0 Set the starting scale of the video output\n\
--singlestep Enable singlestepping with the 'F8' key\n\
--clocksteps [int] 1 Set the clock cycles cycled by a singlestep\n\
--snapshot [string] Import a CPU snapshot\n\
\n"
static float displayScale = 2;
#define HELPKEYS "\
F1 Exit emulator\n\
F2 Show Key Help\n\
F3 Show Debug Menu\n\
F4 Halt CPU\n\
F5 Reset CPU\n\
F6 Scale--\n\
F7 Scale++\n\
F8 Single step CPU\n\
F9 Save CPU snapshot\n\
F10 Load previous snapshot\n\
F11 CPU NMI\n\
F12 CPU IRQ\n\n"
static float displayscale = 2;
static int cpuspeed = 100000; // 100 kHz
static int singlestep = 0;
static int clocksteps = 1;