New Member

Group: Members
Posts: 4
Member No.: 508
Joined: 7-September 04

|
I recently downloaded the latest version of MASM32 and I believe I have found a bug in the RGB macro (last update to that file is Dec.4/2003) The macro is supposed to return COLOREF in eax and is coded as follows
| CODE | xor eax,eax mov ah,blue mov al,green rol eax, 16 mov al,red
|
now if you use this maco like this RGB 255,255,255 it returns in eax FFFF00FF which is wrong, for a COLOREF the last byte must be always 0 the error comes from rol eax,16 it should be rol eax, 8 which will then return in eax 00FFFFFF I am not sure if this is the proper place to report this, there is a provision for reporting winasm bugs but there does not seem to be any for masm32
Mike
|