News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

TYPEDEF minus real4/8 quirk ???

Started by Ficko, June 18, 2010, 08:15:17 AM

Previous topic - Next topic

Ficko

Is this a known bug or I do something wrong? :dazzled:


.686p
.model flat, stdcall
option casemap :none
FLOAT TYPEDEF REAL4
.data
FLN01 REAL4 -0.1  ;OK
FLN02 FLOAT 0.1  ;OK
FLN03 FLOAT -0.1 ;Error ???
.code
start:
xor eax, eax
end start

jj2007

Interesting: I get two different errors...

error A2050:real or BCD number not allowed
error A2009:syntax error in expression


FLOAT  TYPEDEF REAL4

.data
FLN01 REAL4 -0.1
FLN02 FLOAT 0.1
FLN03 FLOAT -0.1
FLN04 FLOAT -1.23


If you are truely disturbed, simply use FLOAT equ <REAL4>, or use JWasm (no error)

Ficko

JWASM seems to be superior on this. :U :8)