The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

Advanced Search

Back to Topic List Back to Topic List  

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


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.
- hex = 0062

- '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?


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.