SlideShare a Scribd company logo
1 of 15
Assembly language
PPT (2)
Number system
Introduction
• In last PPT it ended up with 4 types of number
system .
• In this PPT we are going to see in depth with
conversions .
Binary conversion
• Binary to Decimal
• 1. Start at the rightmost bit.
• 2. Take that bit and multiply by 2n where n is the
current position beginning at 0 and increasing by 1
each time. This represents a power of two.
• 3. Sum each terms product until all bits have been
used.
• Binary number
example : - 1001
convert to decimal
1 * 23 + 0 * 22 + 0 * 21 + 1 * 20 8 + 0 + 0 + 1
8+0+0+1 = (9)10
Ans :- Decimal value = (9) 10
Binary to Hexadecimal
• Hex, or hexadecimal, is a number system of
base 16
• Binary to hex Conversion Example
• Compare the above to table
• For example :-
binary 1100 = C in hex
1011 = B
0001 = 1
for greater then 4 digits in binary
1)example :- 11001011 2)example :- 101010
make group of 4 digits :- make group of 4 digits
:-
1100 1011 Ans :- CB 10 1010 Ans :-2A
C B 2 A
Binary to Octal
• The octal system is again a power of two (23)
• Binary to Octal Conversion Example
• Compare the above to table
• For example :-
binary 100 = 4 in Octal
011 = 3
001 = 1
for greater then 4 digits in binary
1)example :- 11001011 2)example :- 101010
make group of 3 digits :- make group of 3 digits :-
11 001 011 Ans :- 313 101 010 Ans :-52
3 1 3 5 2
Decimal conversion
Decimal to Binary
• 1. Divide the decimal number by 2.
• 2. Take the remainder and record it on the side.
• 3. REPEAT UNTIL the decimal number
cannot be divided into anymore.
• 4. With the bits, record them in order from
right to left as that will be the number in base
two.
• Example
• 8 / 2 = 4 0
4 / 2 = 2 0
2 / 2 = 1 0
1 / 2 = 0 1
• Answer: (1000)2
• Decimal to octal
Its similar to Decimal to binary conversion
instead of 2 have to divide it by 8
Example :- (18)10
18 / 8 = 2 2
2 / 8 = 0 2
Answer : - (22)8
Octal conversion
• Octal to binary
• Simply separate the number and individually
find the binary digit , for Example
• number (742)8
• 7 | 4 | 2
• 111 | 100 | 010
• Answer: (111100010)2
• Octal to Decimal
• Similar to the binary to decimal method,
simply take each digit in the octal base and
multiply by the power of 8
• Example :- (764)8
• 7 * 82 + 6 * 81 + 4 * 80 448 + 48 + 4 = 500
Answer: (500)10
Hex conversions
• Hex o Binary
• This conversion is very simple given the hexadecimal
compare the table and find the answer
• Example
• hexadecimal number (A2F)16
Convert to binary
A | 2 | F
1010 | 0010 | 1111
Answer: (1010 0010 1111)2

More Related Content

What's hot

What's hot (20)

Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
 
Number System
Number SystemNumber System
Number System
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number System
 
Digital basics
Digital basicsDigital basics
Digital basics
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
binary number system
 binary number system binary number system
binary number system
 
Lecture 06 computer arithmatic
Lecture 06 computer arithmaticLecture 06 computer arithmatic
Lecture 06 computer arithmatic
 
Binaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesBinaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemes
 
Fixed Point Conversion
Fixed Point ConversionFixed Point Conversion
Fixed Point Conversion
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
 
01.number systems
01.number systems01.number systems
01.number systems
 
Number system
Number systemNumber system
Number system
 
Number Systems and Binary Aritmetics
Number Systems and Binary AritmeticsNumber Systems and Binary Aritmetics
Number Systems and Binary Aritmetics
 
Number system
Number systemNumber system
Number system
 

Similar to Assembly language 2

Number systems
Number systemsNumber systems
Number systems
Kumar
 
Alu1
Alu1Alu1
Binary octal
Binary octalBinary octal
Binary octal
drdipo4
 
chapter 3 number systems register transfer
chapter 3 number systems register transferchapter 3 number systems register transfer
chapter 3 number systems register transfer
rashidxasan369
 

Similar to Assembly language 2 (20)

number system 1.pptx
number system 1.pptxnumber system 1.pptx
number system 1.pptx
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Cse115 lecture01numbersystems
Cse115 lecture01numbersystemsCse115 lecture01numbersystems
Cse115 lecture01numbersystems
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
Number systems
Number systemsNumber systems
Number systems
 
Digital design chap 1
Digital design  chap 1Digital design  chap 1
Digital design chap 1
 
5a data representation
5a   data representation5a   data representation
5a data representation
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Number Systems - AK.pptx
Number Systems - AK.pptxNumber Systems - AK.pptx
Number Systems - AK.pptx
 
09 binary number systems
09   binary number systems09   binary number systems
09 binary number systems
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
numbersystem-171028183820.pptx
numbersystem-171028183820.pptxnumbersystem-171028183820.pptx
numbersystem-171028183820.pptx
 
lect1.ppt
lect1.pptlect1.ppt
lect1.ppt
 
Alu1
Alu1Alu1
Alu1
 
Binary octal
Binary octalBinary octal
Binary octal
 
chapter 3 number systems register transfer
chapter 3 number systems register transferchapter 3 number systems register transfer
chapter 3 number systems register transfer
 

Recently uploaded

Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
drmarathore
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
wpkuukw
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
uodye
 
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
gajnagarg
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
uodye
 
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
ehyxf
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
uodye
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
tufbav
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
wpkuukw
 
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pillsIn Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
Abortion pills in Riyadh +966572737505 get cytotec
 
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Priya Reddy
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
oopacde
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
tufbav
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
ahmedjiabur940
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
uodye
 

Recently uploaded (20)

Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
 
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
 
Abortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get CytotecAbortion pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Jeddah |+966572737505 | Get Cytotec
 
Point of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryPoint of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratory
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
 
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pillsIn Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
 
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
 
LANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURE
LANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURELANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURE
LANDSLIDE MONITORING AND ALERT SYSTEM FINAL YEAR PROJECT BROCHURE
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
 
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
 
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime GuwahatiGuwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
 

Assembly language 2

  • 2. Introduction • In last PPT it ended up with 4 types of number system . • In this PPT we are going to see in depth with conversions .
  • 3. Binary conversion • Binary to Decimal • 1. Start at the rightmost bit. • 2. Take that bit and multiply by 2n where n is the current position beginning at 0 and increasing by 1 each time. This represents a power of two. • 3. Sum each terms product until all bits have been used.
  • 4. • Binary number example : - 1001 convert to decimal 1 * 23 + 0 * 22 + 0 * 21 + 1 * 20 8 + 0 + 0 + 1 8+0+0+1 = (9)10 Ans :- Decimal value = (9) 10
  • 5. Binary to Hexadecimal • Hex, or hexadecimal, is a number system of base 16
  • 6. • Binary to hex Conversion Example • Compare the above to table • For example :- binary 1100 = C in hex 1011 = B 0001 = 1 for greater then 4 digits in binary 1)example :- 11001011 2)example :- 101010 make group of 4 digits :- make group of 4 digits :- 1100 1011 Ans :- CB 10 1010 Ans :-2A C B 2 A
  • 7. Binary to Octal • The octal system is again a power of two (23)
  • 8. • Binary to Octal Conversion Example • Compare the above to table • For example :- binary 100 = 4 in Octal 011 = 3 001 = 1 for greater then 4 digits in binary 1)example :- 11001011 2)example :- 101010 make group of 3 digits :- make group of 3 digits :- 11 001 011 Ans :- 313 101 010 Ans :-52 3 1 3 5 2
  • 9. Decimal conversion Decimal to Binary • 1. Divide the decimal number by 2. • 2. Take the remainder and record it on the side. • 3. REPEAT UNTIL the decimal number cannot be divided into anymore. • 4. With the bits, record them in order from right to left as that will be the number in base two.
  • 10. • Example • 8 / 2 = 4 0 4 / 2 = 2 0 2 / 2 = 1 0 1 / 2 = 0 1 • Answer: (1000)2
  • 11. • Decimal to octal Its similar to Decimal to binary conversion instead of 2 have to divide it by 8 Example :- (18)10 18 / 8 = 2 2 2 / 8 = 0 2 Answer : - (22)8
  • 12. Octal conversion • Octal to binary • Simply separate the number and individually find the binary digit , for Example • number (742)8 • 7 | 4 | 2 • 111 | 100 | 010 • Answer: (111100010)2
  • 13. • Octal to Decimal • Similar to the binary to decimal method, simply take each digit in the octal base and multiply by the power of 8 • Example :- (764)8 • 7 * 82 + 6 * 81 + 4 * 80 448 + 48 + 4 = 500 Answer: (500)10
  • 14. Hex conversions • Hex o Binary • This conversion is very simple given the hexadecimal compare the table and find the answer
  • 15. • Example • hexadecimal number (A2F)16 Convert to binary A | 2 | F 1010 | 0010 | 1111 Answer: (1010 0010 1111)2