summaryrefslogtreecommitdiff
path: root/nandgame/cpp
diff options
context:
space:
mode:
authoruvok2026-01-11 17:48:47 +0100
committeruvok2026-01-11 17:48:47 +0100
commitd29f372e404e2dece39fe103ff69d37d494e07d7 (patch)
tree08e25082e6ebc6caf8653a8acee54c396c3605c2 /nandgame/cpp
parenta7f2820f1f2e62c1d51b800b7472c22b00267277 (diff)
simpc: Rename define appropriately
Diffstat (limited to 'nandgame/cpp')
-rw-r--r--nandgame/cpp/Vcomputer__main.cpp2
-rw-r--r--nandgame/cpp/simpc_config.h2
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