This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
ciaopaulo


Newbie


Joined: 27 Feb 2007
Posts: 4

Posted: 19 May 2010 09:00:43 am    Post subject:

Hi all,

Has anyone used the .define directive under asmz80?

I've got some code where I want to introduce some flexibility.

I want to be able to code something like this:

.define <path> <actualpathtofile>

.include <path><file>

The .define will be included in a single file which can then be edited to match any changes in file location and or working directory location.

Unfortunately I always seem to get the error


Code:
Error: <o> .org in REL area or directive / mnemonic error


I can't find any examples of this directive in action, so don't know what the syntax really is.
Back to top
Galandros


Active Member


Joined: 29 Aug 2008
Posts: 565

Posted: 19 May 2010 01:50:41 pm    Post subject:

Not sure, but what you want is not something like:
#define filepath "/includes/source.inc"
.include filepath
Back to top
ciaopaulo


Newbie


Joined: 27 Feb 2007
Posts: 4

Posted: 19 May 2010 02:24:48 pm    Post subject:

Galandros wrote:

Not sure, but what you want is not something like:
#define filepath "/includes/source.inc"
.include filepath



Correct.

I'm assembling assembler code though, so it is (or should be) .define, not #define.
Back to top
tr1p1ea


Elite


Joined: 03 Aug 2003
Posts: 870

Posted: 22 May 2010 07:38:36 pm    Post subject:

Well that depends on your assembler really.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement