flat assembler
Message board for the users of flat assembler.

flat assembler > Macroinstructions > In c++ define FCC how do this in fasm ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 376
How translate this to fasm code ?
Code:
#ifndef FCC
#define FCC(ch4) ((((DWORD)(ch4) & 0xFF) << 24) |     \
                  (((DWORD)(ch4) & 0xFF00) << 8) |    \
                  (((DWORD)(ch4) & 0xFF0000) >> 8) |  \
                  (((DWORD)(ch4) & 0xFF000000) >> 24))
#endif
    
Post 03 Mar 2017, 12:48
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 376
MFVideoFormat_MP4S, FCC('MP4S')
How i understood FCC get 'MP4S' and output some Int32 value.
Post 03 Mar 2017, 12:51
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15912
Location: SDSS J140821.67+025733.2
Code:
bswap eax    
Post 03 Mar 2017, 13:06
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 376
You mean FCC('MP4S') output 'S4PM' ?
Post 03 Mar 2017, 14:41
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15912
Location: SDSS J140821.67+025733.2
Yes.
Post 03 Mar 2017, 23:08
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.