From d80d296ec502ea2e2f37bc05fb3230a915ee94f1 Mon Sep 17 00:00:00 2001 From: Adam Billyard <41291895+Elektraglide@users.noreply.github.com> Date: Wed, 19 Jun 2024 18:41:39 +0100 Subject: machine/am9513.cpp: fixed wrong log message for cascading TCs (#12489) --- src/devices/machine/am9513.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/am9513.cpp b/src/devices/machine/am9513.cpp index 34c5c5ec981..bcf768f87c7 100644 --- a/src/devices/machine/am9513.cpp +++ b/src/devices/machine/am9513.cpp @@ -442,7 +442,7 @@ void am9513_device::set_counter_mode(int c, u16 data) else if (source >= 6 && source <= 10) LOGMASKED(LOG_MODE, "Counter %d: Count on %s edge of GATE %d\n", c + 1, BIT(data, 12) ? "falling" : "rising", source - 5); else if (source == 0) - LOGMASKED(LOG_MODE, "Counter %d: Count on %s edge of TC%d\n", c + 1, BIT(data, 12) ? "falling" : "rising", c - 1); + LOGMASKED(LOG_MODE, "Counter %d: Count on %s edge of TC%d\n", c + 1, BIT(data, 12) ? "falling" : "rising", c ); else LOGMASKED(LOG_MODE, "Counter %d: Count on %s edge of SRC %d\n", c + 1, BIT(data, 12) ? "falling" : "rising", source); } -- cgit v1.2.3