1 / 9

Welcome to our presentation

Welcome to our presentation. Group member. Topic name. The number is odd or even. Aim of our program. To write an Assembly Language Program for the number is odd or even in emu8086 software. How easy to way find odd or even number. Logic.

rona
Télécharger la présentation

Welcome to our presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Welcome to our presentation

  2. Group member

  3. Topic name • The number is odd or even

  4. Aim of our program • To write an Assembly Language Program for the number is odd or even in emu8086 software. • How easy to way find odd or even number.

  5. Logic • Every number we divide by two, if there is a remainder the number is odd other wise the number is even.

  6. Function of command • ;get char from keyboard • ;call DOS service • ;ASCII num to decimal • ;multiply by 10 • ;store first digit in NUM • ;get char form keyboard • ;call DOS service • ;ASCII num to decimal

  7. ;Add second digit • ;Printstring the user defined macro • ;Msg macro argument • ;Display string function • ;initialize DX to MSG • ;_DATA the user defined segment • ;ASCII code for carriage return • ;ASCII code for line feed • ;end of _DATA segment • ;initialize DS to the data segment • ;read number

  8. ;print EVEN if remainder of num/2 is zero, otherwise ODD • ;divide by 2 • ;check remainder • ;if zero print even • ;Program terminate function return code for error level setting • ;call SOS service • ;end of segment • ;end of program

  9. Programming process • Program • Compile • Emulate • Output program

More Related