From 6e0fb630d75b517faa48eea4a01b7edf76ac5d59 Mon Sep 17 00:00:00 2001 From: acqn Date: Sat, 5 Sep 2020 21:31:22 +0800 Subject: [PATCH] Fixed check for processor flags usage in case of PHP. --- src/cc65/codeent.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cc65/codeent.c b/src/cc65/codeent.c index 7dd90833b..09ca0a9c5 100644 --- a/src/cc65/codeent.c +++ b/src/cc65/codeent.c @@ -476,6 +476,11 @@ int CE_UseLoadFlags (CodeEntry* E) } } + /* PHP will use all flags */ + if (E->OPC == OP65_PHP) { + return 1; + } + /* Anything else */ return 0; }