[cc65] Hello and ca65 questions

From: 42Bastian Schick <bastian421monlynx.de>
Date: 2005-05-09 09:48:27
Hi,

my name is 42Bastian Schick. Some may know me because of BLL (Lynx Dev. 
Kit) and BJL
(Jaguar Dev. Kit). Also I tweaked the old cc65 for use with the Lynx 
(originally ported by Kurt Olsen).

Since the Lynx part of cc65 is now included I decided to enter this list 
as well.

Also because (since I am an assembler-maniac) I have some 
problems/features missing
in ca65 :-)

One thing (I fixed myself) are variables.

Many assemblers offer this (using the pseudo I introduced into ca65 :-)

ab == 10
	lda #ab

ab == ab +10

	lda #ab

The resulting code has lda #10 and lda #20.

This works fine for absolute references and could be nicely integrated 
into ca65 w/o touching too much.

Nevertheless, if the "variable" has a linker-resolved reference, only the 
last value
is used. Here it seems, I do not yet quiet understand the namespace 
handling and label resolving.

The second thing I have (not yet) found is a way to use macro-parameters 
to construct e.g. labels.
I have seen this works:
	.macro xx name
name:
	.byte .STRING(name)
	.endmacro

But sometimes I'd like to do this:

	.macro xx name
xname:
	.endmacro

Thus doing
	xx f
should give me a label
xf:

Many assembler either have escapes like doing:
x<>name:
or you can access the parameter using its position like
x\0:

So the question is: Is it already possible ?

TIA,
-- 
42Bastian Schick
----------------------------------------------------------------------
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 May 9 09:48:37 2005

This archive was generated by hypermail 2.1.8 : 2005-05-09 09:48:40 CEST