flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
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: 323
In c++ define FCC how do this in fasm ?
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: 323
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: 15085
Location: The Unicomplex

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: 323
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: 15085
Location: The Unicomplex
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.