summaryrefslogtreecommitdiff
path: root/nandgame/cpp/Vcomputer__main.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/Vcomputer__main.cpp
parenta7f2820f1f2e62c1d51b800b7472c22b00267277 (diff)
simpc: Rename define appropriately
Diffstat (limited to 'nandgame/cpp/Vcomputer__main.cpp')
-rw-r--r--nandgame/cpp/Vcomputer__main.cpp2
1 files changed, 1 insertions, 1 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;
}