1
0
mirror of https://github.com/cc65/cc65.git synced 2026-03-10 17:21:49 +00:00

Make the scrcode macros handle identifiers.

This commit is contained in:
Kugel Fuhr
2025-07-01 20:14:34 +02:00
parent 8e62d3d440
commit 12bc6ff99e
3 changed files with 18 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"