Re: A86: Re: Any TASM directive experts???


[Prev][Next][Index][Thread]

Re: A86: Re: Any TASM directive experts???




what are you talking about?  tasm supports macros!

this will take up only as many bytes as you need, but it will probly be
of no use:

#define largenum(a)  .db (a & 0000000ffh)
#defcont            \ #if (a>0000000ffh)
#defcont            \ .db (a & 00000ff00h)>>8
#defcont            \ #if (a>00000ffffh)
#defcont            \ .db (a & 000ff0000h)>>16
#defcont            \ #if (a>000ffffffh)
#defcont            \ .db a >> 24
#defcont            \ #endif \ #endif \ #endif

i've tested that, so it should work.

largenum(100000)
 is equivalent to
.db $a0,$86,$01

-josh

On Thu, 27 Jan 2000 22:24:44 -0700 "David Phillips" <david@acz.org>
writes:
>
>Tasm doesn't support macros :)
>
>> Yeah, but... then you'd have to have some bits that said how long 
>the
>number
>> was, probably not worth it. Plus I'm not sure if tasm supports #if's 
>in
>> macros.
>>
>> ----- Original Message -----
>> From: <JayEll64@aol.com>
>> To: <assembly-86@lists.ticalc.org>
>> Sent: Thursday, January 27, 2000 9:02 PM
>> Subject: Re: A86: Re: Any TASM directive experts???
>>
>>
>> > I thought that would probably work...so is there a way so that it
>*isn't*
>> > always 4 bytes long???
>>
>>
>>
>>
>
>

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.


Follow-Ups: