Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8007271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:46:16+00:00 2026-06-04T17:46:16+00:00

The following takes two 8bit integers and combines them to generate a 14bit integer.

  • 0

The following takes two 8bit integers and combines them to generate a 14bit integer.

    public static int CombineBytes(int LSB, int MSB)
    {
        int _14bit;

        _14bit = MSB;
        _14bit <<= 7;
        _14bit |= LSB;

        return(_14bit);
    }

What would be the opposite process to this function?

For example if I supplied a function with a 14bit integer I would get two 8bit integers in the form of the most significant byte and the least significant byte?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:46:17+00:00Added an answer on June 4, 2026 at 5:46 pm

    Assuming you mean two 7 bit integers, you can get the high 7 bits by shifting 7 to the right high = combined >> 7 and the low 7 bits by masking with binary and low = combined & 0x7F.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have solved the following algorithm shown below. public static long park(int n) {
I have the following Db and query. The query takes two parameters: the sort
I wrote the following simple function that takes two parameters mostly coming from another
I have a SQL function called get_forecast_history(integer,integer) that takes two arguments, a month and
What I mean is the following. I want a template function that takes two
Given the following function which takes two parameters (csv-data1 and csv-data2, vectors of vectors
In the following jQuery, the .each() method takes two arguments: 'ul li a' and
I'm trying to write a function that does the following: takes an array of
Following code takes like 2500 milliseconds on an i7-*3.4 GHz windows-7 64-bit computer to
The following query takes more than 3 minutes to run because tables contain massive

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.