From b4dc41c653c06d4ce34771993e47db3b0c7955f0 Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:37:57 +0100 Subject: [PATCH] CPU constants must always be defined, not only if a target system was given. --- src/ca65/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ca65/main.c b/src/ca65/main.c index 66ba331dd..296b65b5e 100644 --- a/src/ca65/main.c +++ b/src/ca65/main.c @@ -411,9 +411,6 @@ static void SetSys (const char* Sys) } - /* Define the symbols for evaluating .cpu */ - DefineCpuSymbols (); - /* Initialize the translation tables for the target system */ TgtTranslateInit (); } @@ -1254,6 +1251,9 @@ int main (int argc, char* argv []) SetMemoryModel (MMODEL_NEAR); } + /* Define the symbols for evaluating .cpu */ + DefineCpuSymbols (); + /* Set the default segment sizes according to the memory model */ SetSegmentSizes ();