Documents

al2ed_chapter7

Categories
Published
of 43
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Description
al2ed_chapter7
Transcript
  Arithmetic Flags and Instructions Chapter 7 S. Dandamudi  2005 To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer, 2005.     S. Dandamudi Chapter 7: Page 2 Outline ã Status flags  Zero flag  Carry flag  Overflow flag  Sign flag  Auxiliary flag  Parity flag ã Arithmetic instructions  Multiplication instructions  Division instructions ã Application examples  PutInt8  GetInt8 ã Multiword arithmetic  Addition  Subtraction  Multiplication  Division ã Performance: Multiword multiplication  2005 To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer, 2005.     S. Dandamudi Chapter 7: Page 3 Status Flags ã Six status flags monitor the outcome of arithmetic, logical, and related operations  2005 To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer, 2005.     S. Dandamudi Chapter 7: Page 4 Status Flags (cont‟d)   ã Status flags are updated to indicate certain  properties of the result  Example: If the result is zero, zero flag is set ã Once a flag is set, it remains in that state until another instruction that affects the flags is executed ã  Not all instructions affect all status flags  add   and sub  affect all six flags  inc  and dec  affect all but the carry flag   mov ,  push , and  pop  do not affect any flags
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks