Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Determining which flags are set from a hexadecimal input
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Darren

Posts: 2
Registered: 2/11/13
Determining which flags are set from a hexadecimal input
Posted: Feb 11, 2013 6:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I'm currently looking into writing a program which reads a hexadecimal input, and then tells me which flags are set depending on what the hex input is.

For e.g.
input
- hex = 0062

output
- 'Byte 0 bit 1 is set' therefore parameter x
- 'Byte 1 bit 0 is set' therefore parameter y
- 'Byte 1 bit 3 is set' therefore parameter z

Could anyone assist in what the best way would be to program this code?

Thanks



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.