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 7527289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:04:27+00:00 2026-05-30T04:04:27+00:00

The system I’m working with, has four registers: al, bl, cl, dl and values

  • 0

The system I’m working with, has four registers: al, bl, cl, dl and values can be stored only as hex.

I am reading from keyboard 2 digits, e.g. 9 and 1.

I would like to store this number in the BL register, as 5B which is the hex value for 91 (decimal).

I’ve been thinking of ways to solve this, but I can’t find any. My main mistake was I was multiply 9 by 10, and add 1, result is 91, but I’ve forgot that actually 91 is in hex, which translated to decimal becomes 145 (which is not my number)

So, how do I store the two digits (9 and 1, which form 91) as hex value (5B) into some register or in RAM.

Please advise.

Many thanks,
V

  • 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-05-30T04:04:28+00:00Added an answer on May 30, 2026 at 4:04 am

    My main mistake was I was multiply 9 by 10, and add 1, result is 91, but I’ve forgot that actually 91 is in hex

    That’s not a mistake. As long as you are multiplying by 10 (decimal) and not 10h (hex, which is 16 decimal), then you’ll get the answer you are looking for.

    Values stored in CPU registers are just binary numbers, they aren’t “in hex” or “in decimal”.

    Note that you may occasionally run into BCD, which aren’t binary numbers but are another thing entirely.

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

Sidebar

Related Questions

System.Windows.Forms.Form has only one scroll event- Scroll , but it is necessary to recognize
System.Threading.Thread.Name is a write-once property. I can assign to it at once, and only
System.IO.BinaryReader reads values in a little-endian format. I have a C# application connecting to
System.BitArray only implements the non-generic IEnumerable, which returns an Object for the IEnumerator.Current property.
System.Text.RegularExpressions.Regex(#*#) is this correct..!? my text can be like #abc1234+as00# etc. ie, anything between
System.Collections.Concurrent has some new collections that work very well in multithreaded environments. However, they
System.Collections.Specialized.NameObjectCollectionBase has two similar properties: string[] AllKeys NameObjectCollectionBase.KeyCollection Keys Do they provide different sets
System A captures X information from users via UI. This information is validated and
System: Debian Lenny/Apache 2.2/php5.3.3 compiled from sources I'm strugglying with the date.timezone within php.ini.
System.out.println(s.toString().substring(0,s.indexOf(.mp3))); i am downloading file from android application.. i need to name them as

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.