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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:29:58+00:00 2026-06-01T14:29:58+00:00

I am learning assembly language in my spare time to become a better developer.

  • 0

I am learning assembly language in my spare time to become a better developer. I have bought a book from Amazon and it will be delivered soon and I am trying to familiarise myself with the basic concepts before I dig in.

I am confused about which general purpose registers I should use for general purpose tasks. I know the C programming language and I have read about calling conventions for assembly and the Windows API.

However, if you have a very simple task e.g. add two numbers together with no references to C etc, then which registers would you use?

I realise this is a basic question.

  • 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-01T14:30:00+00:00Added an answer on June 1, 2026 at 2:30 pm

    Whichever ones you want, really.

    In first-generation 8086 processors, some of the general-purpose registers (AX, BX, CX, DX) had semi-special purposes as well. For example, the LOOP opcode assumes that your loop counter is in CX; and the DIV opcode stores the results in AX and DX. And some addressing modes could use BX or SI or DI as an offset, but couldn’t use the other general-purpose registers as offsets.

    Over succeeding processor generations, some of those special purposes have faded — for example, I think most opcodes now let you use any register as an offset, not just BX. So for the most part, the general-purpose registers are interchangeable.

    If you want to follow historical precedent, (E)AX is the “accumulator”, so it would be the traditional place to store e.g. the running total as you’re summing a series of numbers. So if you’re doing addition, and you’re not sure which register to put the result in, (E)AX would be a good default choice.

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

Sidebar

Related Questions

I am currently learning Assembly language on Linux. I have been using the book
does anyone have any resources for learning assembly language on x86? I'm trying to
Where could one start learning assembly language from? Could you suggest some place that
I am studying x86 assembly language via the book called Programming from the Ground
i'm currently learning x86 assembly language and wondered what is the better way for
I'm learning MIPS Assembly by the book MIPS Assembly Language Programming , but my
I am learning High Level Assembly language at the moment and have been going
I'm learning assembly and I'm trying to do a simple read from keyboard /
So I have been learning assembly and came to the topic of stack, storing
I'm learning assembly and I have a very basic loop here segment .data msg:

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.