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.
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 ?
BTW: why won't you switch to TASM 5.0 or 5.2 ?
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?
The following compiles with no errors with both TASMs 5.0 and 5.3
"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.
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.
Oh i thought we couldn't use the notation used for floating point numbres if the assembler didn't support it. Thank you guys.