TASM macro args can't be embedded in identifiers
I'm using TASM 3.2 (Telemark Assembler, *not* Borland Turbo Assembler) to assemble code for the z80. I can't find the syntax to embed a macro argument in an identifier, like I can in MASM, where I just surround the argument name with ampersands.
This is what I want to do (TASM code with MASM-style embedding): Code:
#define macro1(arg) prefix_&arg&: \ ld a, 0 Thanks in advance, Alek |
Hi -
I don't know anything about Z80 assembler ("Welcome to the 80's" ;-)) or the Telemark assembler... ... but (as you certainly know), the Telemark manual is on-line here: http://home.comcast.net/~tasm/tasmman.htm You appear to be asking for *two* things: a) Assembler macros (with arguments) <= Telemark clearly supports this b) ANSI C style "token pasting" (C uses "##", you're using "&") <= It doesn't look like Telemark supports this PS: The manual gives this example: Quote:
|
All times are GMT -5. The time now is 10:37 PM. |