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


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

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




In a message dated 1/27/00 8:01:20 PM Mountain Standard Time, 
kirkmeyer@bigfoot.com writes:

> If you it will always be a .db of length 4 bytes (i.e. you don't care that
>  the number 1 is represented by 32 bits), then it's easy.
>  
>  #define NUM(x) .db (x)&255,(x/256)&255,(x/65536)&255,(x/16777216)&255

I thought that would probably work...so is there a way so that it *isn't* 
always 4 bytes long???

>  I think there might be a drawback... I'm not sure that TASM supports 32-bit
>  math =/

It supports 32-bit signed arithmetic...

>  Your other options is to do BCD: .db $01,$23,$45,$67,$89

Naw, that's a space waster ;)

JayEll


Follow-Ups: