From 12bc6ff99eef5b798dc0dd9db9df4af64f233bf8 Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Tue, 1 Jul 2025 20:14:34 +0200 Subject: [PATCH] Make the scrcode macros handle identifiers. --- asminc/apple2.mac | 6 ++++++ asminc/atari.mac | 6 ++++++ asminc/cbm.mac | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/asminc/apple2.mac b/asminc/apple2.mac index b9860c092..c0c957102 100644 --- a/asminc/apple2.mac +++ b/asminc/apple2.mac @@ -36,6 +36,12 @@ ; Just output the character _scrcode arg1 + ; Check for an identifier + .elseif .match (.left (1, {arg1}), identifier) + + ; Just output the identifier + _scrcode arg1 + ; Anything else is an error .else diff --git a/asminc/atari.mac b/asminc/atari.mac index 3916254d0..952af8732 100644 --- a/asminc/atari.mac +++ b/asminc/atari.mac @@ -46,6 +46,12 @@ ; Just output the character _scrcode arg1 + ; Check for an identifier + .elseif .match (.left (1, {arg1}), identifier) + + ; Just output the identifier + _scrcode arg1 + ; Anything else is an error .else diff --git a/asminc/cbm.mac b/asminc/cbm.mac index 6d7ac7e8d..5c542b228 100644 --- a/asminc/cbm.mac +++ b/asminc/cbm.mac @@ -40,6 +40,12 @@ ; Just output the character _scrcode arg1 + ; Check for an identifier + .elseif .match (.left (1, {arg1}), identifier) + + ; Just output the identifier + _scrcode arg1 + ; Anything else is an error .else .error "scrcode: invalid argument type"