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


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

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




Whoa, when did they add the #defcont directive?  I've never seen that
before.  I stand corrected :)  As far as I knew, it only handled
non-recursive #defines, the same as a standard C compiler.

> 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




References: