From 308fe5ba50a8ee99004a28c6f82a82a97af02490 Mon Sep 17 00:00:00 2001 From: 0xmac Date: Tue, 17 Dec 2024 13:10:12 +0100 Subject: [PATCH] Added function key functions --- src/config.h | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/config.h b/src/config.h index f9f2c44..61e5fe6 100644 --- a/src/config.h +++ b/src/config.h @@ -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;