A89: Re: Re: deifines
[Prev][Next][Index][Thread]
A89: Re: Re: deifines
no no no
i mean, lets say you ahve this tiny bit of code:
move.l #273,d0
but since 273 is jsut a number with no real meaning to it, but you wanted to
give it more menaing, even though it was always in your program 273 that you
would use, you could write:
move.l PasswordKey,d0
but you would have to tell the assembler that whenever it sees "Password
Key" in the program to replace it with "#273"
under TASM, this was used frequently and i am absolutely sure that it is
possible in a68k too... i just thought of where i can find it.. just a sec.
aha! thast it! equates
PasswordKey equ #273
Thank you everyone.
Kaus
----- Original Message -----
From: Miles Raymond <m_rayman@bigfoot.com>
To: <assembly-89@lists.ticalc.org>
Sent: Thursday, July 15, 1999 2:48 PM
Subject: A89: Re: deifines
>
>Are you talking about variables? As in:
>
>xcoord:
> dc.w #15
>ycoord:
> dc.w #15
>
>-Miles Raymond EML: m_rayman@bigfoot.com
>ICQ: 13217756 IRC: Killer2 AIM: KilIer2 (kilier2)
>http://www.bigfoot.com/~m_rayman/
>
>----- Original Message -----
>From: Kaus <kaus@cybrzn.com>
>To: asm89 <assembly-89@lists.ticalc.org>
>Sent: Thursday, July 15, 1999 1:23 PM
>Subject: A89: deifines
>
>
>> ok, for the m68k assembler, which assembler directive defines things to a
>> number, like in tasm you would go:
>> define hello $45
>> what is it for the m68k assembler?
>> xdef??
>> i dunno
>> kaus
>
>