From d29f372e404e2dece39fe103ff69d37d494e07d7 Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 11 Jan 2026 17:48:47 +0100 Subject: simpc: Rename define appropriately --- nandgame/cpp/Vcomputer__main.cpp | 2 +- nandgame/cpp/simpc_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nandgame') diff --git a/nandgame/cpp/Vcomputer__main.cpp b/nandgame/cpp/Vcomputer__main.cpp index 77e291f..a09deea 100644 --- a/nandgame/cpp/Vcomputer__main.cpp +++ b/nandgame/cpp/Vcomputer__main.cpp @@ -57,7 +57,7 @@ int main(int argc, char **argv, char **) { !topp->halt) { auto i = contextp->time(); - if (i != 0 && (i % TICKS_PER_INS) == 0) { + if (i != 0 && (i % TICKS_PER_CLOCK_PERIOD) == 0) { topp->clk_in = !topp->clk_in; } diff --git a/nandgame/cpp/simpc_config.h b/nandgame/cpp/simpc_config.h index 5e3440b..d021861 100644 --- a/nandgame/cpp/simpc_config.h +++ b/nandgame/cpp/simpc_config.h @@ -1,4 +1,4 @@ #pragma once -#define TICKS_PER_INS 1 +#define TICKS_PER_CLOCK_PERIOD 1 #define NCUR_DELAY_MS 10 -- cgit v1.2.3