diff options
| author | uvok | 2026-01-11 17:48:47 +0100 |
|---|---|---|
| committer | uvok | 2026-01-11 17:48:47 +0100 |
| commit | d29f372e404e2dece39fe103ff69d37d494e07d7 (patch) | |
| tree | 08e25082e6ebc6caf8653a8acee54c396c3605c2 /nandgame/cpp | |
| parent | a7f2820f1f2e62c1d51b800b7472c22b00267277 (diff) | |
simpc: Rename define appropriately
Diffstat (limited to 'nandgame/cpp')
| -rw-r--r-- | nandgame/cpp/Vcomputer__main.cpp | 2 | ||||
| -rw-r--r-- | nandgame/cpp/simpc_config.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 |
