際際滷

際際滷Share a Scribd company logo
PRESENTED TO:
MAMSANIYA
COOL GROUP SAIRA ZAHEER 1430314
 MAIRA JUNAID 1430297
 RABICAAFZAL 1430309
OUTLINE
 DIVISION
 DIV
 IDIV
 WORD FORM
 BYTE FORM
 DIVIDE OVERFLOW
 EXAMPLES
 SIGN EXTENSION OF DIVIDEND
 WORD DIVISION
 BYTE DIVISION
 EFFECT OF FLAG
 CONCLUSION
DIVISION
THERE ARE TWO DIVISON OPERATORS:
 DIV (UNSIGNED DIVIDE)
 IDIV(SIGNED DIVIDE)
 SYNTAX: DIV divisor & IDIV divisor
 BYTE FORM: Divisor is in 8-bit register.The 16-bit dividend is in AX
 RESULT OF BYTE FORM:8-bit Quotient is in AL.8-bit Remainder is in AH
WORD FORM:
Divisor is a 16-bit register. The 32-bit
dividend is in DX:AX
RESULT OF WORD FORM:16-bit Quotient is
in AX.16-bit Remainder is in DX
DIVISOR NOT BE A CONSTANT
DIVIDE OVERFLOW
If the divisor is much smaller than the
dividend, the Quotient will be too big to fit
in the specified destination that is AL or AX
.It gives error DIVIDE OVERFLOW
EXAMPLE OF DIVIDE OVERFLOW
SUPPOSE AX CONTAINS 00FBH AND BL CONTAINS FFH
instruction Decimal
quotient
Decimal
Reminder
AX AL
DIV BL 0 251 FB 00
IDIV BL DIVIDE
OVERFLOW
EXAMPLE OF DIV SUPPOSE DX CONTAINS 0000H,AX
CONTAINS 0005H,AND BX CONTAINS 0002H 0002H.
Instruction Decimal
quotient
Decimal
remainder
AX DX
DIV BX 2 1 0002 0001
EXAMPLE OF IDIV
SUPPOSE DX CONTAINS 0000H,AX CONTAINS
0005H,AND BX CONTAINS FFFEH
instruction Decimal
quotient
Decimal
remainder
AX DX
IDIV BX -2 1 FFFE 0001
SIGN EXTENSION OF THE DIVIDEND
 WORD DIVISION
FOR DIV,DX should be cleared.
FOR IDIV,DX should sign extension of
AX. The instruction CWD will do the
extension.
EXAMPLE OF WORD DIVISION
DIVIDE-1250 BY 7
 MOV AX,-1250 ;AX gets dividend
 CWD ;Extend sign to DX
 MOV BX,7 ;BX has divisor
 IDIV BX ;AX gets quotient,
;DX has remainder
BYTE DIVISION
FOR DIV,AH should be cleared.
FOR IDIV,AH should the sign extension of
AL. The instruction CBW (Convert byte to
word) will do the extension.
EXAMPLE OF BYTE DIVISION
DIVIDE THE SIGNED VALU OF THE BYTE VARIABLE XBYTE
BY -7
 MOV AL,XBYTE ;AL has dividend
 CBW ;Extend sign to AH
 MOV BL,-7 ;BL has divisor
 IDIV BL ;AL has quotient,AH
has remainder
EFFECT OF FLAGES
THERE IS NO EFFECT OF CBW AND CWD ON
THE FLAGS
THANKS FOR YOUR ATTENTION
SPECIAL THANX TO MOMINA FOR HELPING US IN
PREPARATION

More Related Content

More from amna izzat (6)

1 introduction ddbms
1 introduction ddbms1 introduction ddbms
1 introduction ddbms
amna izzat
Avl trees
Avl treesAvl trees
Avl trees
amna izzat
C++basics
C++basicsC++basics
C++basics
amna izzat
Week 8 (trees)
Week 8 (trees)Week 8 (trees)
Week 8 (trees)
amna izzat
Selection sort
Selection sortSelection sort
Selection sort
amna izzat
Bubble sort
Bubble sortBubble sort
Bubble sort
amna izzat
1 introduction ddbms
1 introduction ddbms1 introduction ddbms
1 introduction ddbms
amna izzat
Week 8 (trees)
Week 8 (trees)Week 8 (trees)
Week 8 (trees)
amna izzat
Selection sort
Selection sortSelection sort
Selection sort
amna izzat
Bubble sort
Bubble sortBubble sort
Bubble sort
amna izzat

Recently uploaded (20)

English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
Mate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptxMate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptx
Liny Jenifer
How to use Init Hooks in Odoo 18 - Odoo 際際滷s
How to use Init Hooks in Odoo 18 - Odoo 際際滷sHow to use Init Hooks in Odoo 18 - Odoo 際際滷s
How to use Init Hooks in Odoo 18 - Odoo 際際滷s
Celine George
Useful environment methods in Odoo 18 - Odoo 際際滷s
Useful environment methods in Odoo 18 - Odoo 際際滷sUseful environment methods in Odoo 18 - Odoo 際際滷s
Useful environment methods in Odoo 18 - Odoo 際際滷s
Celine George
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
Association for Project Management
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptxPOWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
MarilenQuintoSimbula
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptxTRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
PoojaSen20
How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18
Celine George
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
Information Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill SubjectInformation Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill Subject
VEENAKSHI PATHAK
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptxTLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
RizaBedayo
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
Digital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptxDigital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptx
Dr. Sarita Anand
Kaun TALHA quiz Prelims - El Dorado 2025
Kaun TALHA quiz Prelims - El Dorado 2025Kaun TALHA quiz Prelims - El Dorado 2025
Kaun TALHA quiz Prelims - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Blind spots in AI and Formulation Science, IFPAC 2025.pdf
Blind spots in AI and Formulation Science, IFPAC 2025.pdfBlind spots in AI and Formulation Science, IFPAC 2025.pdf
Blind spots in AI and Formulation Science, IFPAC 2025.pdf
Ajaz Hussain
Computer Application in Business (commerce)
Computer Application in Business (commerce)Computer Application in Business (commerce)
Computer Application in Business (commerce)
Sudar Sudar
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
Mate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptxMate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptx
Liny Jenifer
How to use Init Hooks in Odoo 18 - Odoo 際際滷s
How to use Init Hooks in Odoo 18 - Odoo 際際滷sHow to use Init Hooks in Odoo 18 - Odoo 際際滷s
How to use Init Hooks in Odoo 18 - Odoo 際際滷s
Celine George
Useful environment methods in Odoo 18 - Odoo 際際滷s
Useful environment methods in Odoo 18 - Odoo 際際滷sUseful environment methods in Odoo 18 - Odoo 際際滷s
Useful environment methods in Odoo 18 - Odoo 際際滷s
Celine George
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
Association for Project Management
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptxPOWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
MarilenQuintoSimbula
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptxTRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
PoojaSen20
How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18
Celine George
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
Information Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill SubjectInformation Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill Subject
VEENAKSHI PATHAK
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptxTLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
TLE 7 - 2nd Topic - Codes and Standards in Industrial Arts Services.pptx
RizaBedayo
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
Digital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptxDigital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptx
Dr. Sarita Anand
Blind spots in AI and Formulation Science, IFPAC 2025.pdf
Blind spots in AI and Formulation Science, IFPAC 2025.pdfBlind spots in AI and Formulation Science, IFPAC 2025.pdf
Blind spots in AI and Formulation Science, IFPAC 2025.pdf
Ajaz Hussain
Computer Application in Business (commerce)
Computer Application in Business (commerce)Computer Application in Business (commerce)
Computer Application in Business (commerce)
Sudar Sudar

Byte division

  • 2. COOL GROUP SAIRA ZAHEER 1430314 MAIRA JUNAID 1430297 RABICAAFZAL 1430309
  • 3. OUTLINE DIVISION DIV IDIV WORD FORM BYTE FORM DIVIDE OVERFLOW EXAMPLES SIGN EXTENSION OF DIVIDEND WORD DIVISION BYTE DIVISION EFFECT OF FLAG CONCLUSION
  • 4. DIVISION THERE ARE TWO DIVISON OPERATORS: DIV (UNSIGNED DIVIDE) IDIV(SIGNED DIVIDE) SYNTAX: DIV divisor & IDIV divisor BYTE FORM: Divisor is in 8-bit register.The 16-bit dividend is in AX RESULT OF BYTE FORM:8-bit Quotient is in AL.8-bit Remainder is in AH
  • 5. WORD FORM: Divisor is a 16-bit register. The 32-bit dividend is in DX:AX RESULT OF WORD FORM:16-bit Quotient is in AX.16-bit Remainder is in DX DIVISOR NOT BE A CONSTANT
  • 6. DIVIDE OVERFLOW If the divisor is much smaller than the dividend, the Quotient will be too big to fit in the specified destination that is AL or AX .It gives error DIVIDE OVERFLOW
  • 7. EXAMPLE OF DIVIDE OVERFLOW SUPPOSE AX CONTAINS 00FBH AND BL CONTAINS FFH instruction Decimal quotient Decimal Reminder AX AL DIV BL 0 251 FB 00 IDIV BL DIVIDE OVERFLOW
  • 8. EXAMPLE OF DIV SUPPOSE DX CONTAINS 0000H,AX CONTAINS 0005H,AND BX CONTAINS 0002H 0002H. Instruction Decimal quotient Decimal remainder AX DX DIV BX 2 1 0002 0001
  • 9. EXAMPLE OF IDIV SUPPOSE DX CONTAINS 0000H,AX CONTAINS 0005H,AND BX CONTAINS FFFEH instruction Decimal quotient Decimal remainder AX DX IDIV BX -2 1 FFFE 0001
  • 10. SIGN EXTENSION OF THE DIVIDEND WORD DIVISION FOR DIV,DX should be cleared. FOR IDIV,DX should sign extension of AX. The instruction CWD will do the extension.
  • 11. EXAMPLE OF WORD DIVISION DIVIDE-1250 BY 7 MOV AX,-1250 ;AX gets dividend CWD ;Extend sign to DX MOV BX,7 ;BX has divisor IDIV BX ;AX gets quotient, ;DX has remainder
  • 12. BYTE DIVISION FOR DIV,AH should be cleared. FOR IDIV,AH should the sign extension of AL. The instruction CBW (Convert byte to word) will do the extension.
  • 13. EXAMPLE OF BYTE DIVISION DIVIDE THE SIGNED VALU OF THE BYTE VARIABLE XBYTE BY -7 MOV AL,XBYTE ;AL has dividend CBW ;Extend sign to AH MOV BL,-7 ;BL has divisor IDIV BL ;AL has quotient,AH has remainder
  • 14. EFFECT OF FLAGES THERE IS NO EFFECT OF CBW AND CWD ON THE FLAGS
  • 15. THANKS FOR YOUR ATTENTION SPECIAL THANX TO MOMINA FOR HELPING US IN PREPARATION