Programming Assembly Language - Part 1
Chapter One
Types of Numeral System
In assembly language we will have to know about four numeral systems.
- The first one is Binary Numeral System (base 2). This one is commonly used in machine code.
- The second one is Decimal (base 10). Most people must know this type. It is usually used in our life.
- The third one is Octal (base 8)
- And the last one which is the most common type used in assembly language is Hexadecimal (base 16).
But what are they?
Here's a little explanation.
Actually all data or program in a computer is first translated to binary. Although it is decimal, octal or even hexadecimal, they will always be translated to binary to be processed. If in decimal we use ten numbers, from 0 up to 9, in binary we only use 0's and 1's. Because it is base two, we can convert it into decimal by multiplying its "x" number with 2x (counted form left, starting from 0) For example we have this number (1101) in binary. And by using that method we can convert it into decimal -- 1101 = (1 X 23) + (1 X 22) + (0 X 21) + (1 X 20) = 26.
Next is the decimal. I don't think I have to explain much about decimal since we usually use it in our daily life.
Now here comes Octal. It is base eight numeral system. In decimal we use ten numbers, in binary we use two numbers then in octal we use eight numbers, from 0 up to 7. The same method, applied to convert it into decimal, multiply its "x" number with 8x (counted form left, counted from 0). For example, 12 in octal means 10 in decimal. Just try to count it with that method.
You may also like...
- Programming Assembly Language - Part 2
- How Article Marketing Can Significantly Increasing Your Income (Part 5 of 5)
- Gaining Weight - the Nutrition (Part I)
- Prowealth Solutions Vs. The NPN - Which One Can Make You More Money (Part II of III)
- What You Need to Know Before Choosing or Switching Medicare Part D Programs
- Mouth Ulcers - Causes, Medications, and Natural Treatments - Part 1 of 3
- How to Home Brew Beer, Part II: Fermentation
- Taylor Hicks Tour Experience Part 5
- The Best Heritage Sites of Eastern Ireland Part II
- Top Scams to Avoid Part III
Comments
Type in Your Comments Below - (1000 characters left)
Most Commented On


