[cc65] .EXPORT

From: <silverdr1wfmh.org.pl>
Date: 2012-12-31 02:17:03
The docs say:

11.38 .EXPORT

Make symbols accessible from other modules. Must be followed by a comma separated list of symbols to export, with each one *optionally* followed by an address specification [...]


What I am trying to do is to define a label and export it in one line instead of doing

.EXPORT prefs_retry_count
prefs_retry_count:
	.byte	5

kind of non-DRY type of work.

However when I do something like this

.EXPORT prefs_retry_count:
	.byte	5

I receive

preferences.s(52): Error: Address size specifier expected
preferences.s(53): Error: Unexpected trailing garbage characters
[...]

Is that a bug or feature? ;-)

-- 
SD!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Dec 31 02:24:41 2012

This archive was generated by hypermail 2.1.8 : 2012-12-31 02:24:45 CET