Does anybody know how we can declare a variable of type, for example, REAL4 in TASM 3.x? The version of the assembler that i am using does not allow the declaration of such variable.
Posted on 2006-09-30 01:04:09 by XCHG
You declare it as 'dd' for single precision, 'dq' for double precision and (iirc) 'dt' for 80-bit precision. TASM is very 'low-level'. It has as few data types as it needs to run, and no type-checking.

BTW: why won't you switch to TASM 5.0 or 5.2 ?
Posted on 2006-09-30 23:21:25 by ti_mo_n
Uh well how can i initialize the floating point number to something like 0.005 if i use DD for REAL4? That's the kind of thing i was having problem with. Oh and about newer versions of TASM, yeah i think i have to download them somehow. Is it for free btw?
Posted on 2006-10-01 00:06:18 by XCHG
The following compiles with no errors with both TASMs 5.0 and 5.3
blah        dd    5.6
blah2        dq    7.8
blah3        dt    10.1035

"Broland TASM 5.0" is (almost) free, IIRC. "Inprise TASM 5.3" (it supports (F)CMOV and MMX) comes with Broland Turbo C++ 6.0 (which is very cheap now), if I'm not mistaken.
Posted on 2006-10-01 17:58:47 by ti_mo_n
Turbo C++ 6.0 Explorer is free. It includes TASM 5.3.

Posted on 2006-10-02 16:37:26 by Greg
Oh i thought we couldn't use the notation used for floating point numbres if the assembler didn't support it. Thank you guys.
Posted on 2006-10-06 12:33:30 by XCHG