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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user