Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > TASM macro args...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4922 of 5072
Post > Topic >>

TASM macro args can't be embedded in identifiers

by alek.storm@[EMAIL PROTECTED] Mar 21, 2008 at 07:39 AM

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):
#define macro1(arg) prefix_&arg&: \ ld a, 0
macro1(foo)
  jp prefix_foo ; test that label was created correctly

prefix_&arg& should become prefix_foo, but TASM barfs. I've searched
all over, but can't find this documented for TASM. Has anybody else
had to do this before?

Thanks in advance,
Alek
 




 4 Posts in Topic:
TASM macro args can't be embedded in identifiers
alek.storm@[EMAIL PROTECT  2008-03-21 07:39:09 
Re: TASM macro args can't be embedded in identifiers
"Rod Pemberton"  2008-03-21 11:37:56 
Re: TASM macro args can't be embedded in identifiers
alek.storm@[EMAIL PROTECT  2008-03-21 10:42:52 
Re: TASM macro args can't be embedded in identifiers
"Rod Pemberton"  2008-03-22 03:58:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 15:47:07 CDT 2008.