1 / 6

Assembly Programming

Notes for Practical 6. Assembly Programming. Basic Arithmetic. Addition Add destination, source Subtraction Sub destination, source Multiplication Division. Addition. 10 + 6 = 16 mov ax, 10 add ax, 6 Java: ax = 10; ax = ax + 5;. Subtraction. 10 – 6 = 4 mov ax, 10 sub ax, 6

Télécharger la présentation

Assembly Programming

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. Notes for Practical 6 Assembly Programming

  2. Basic Arithmetic Addition Add destination, source Subtraction Sub destination, source Multiplication Division

  3. Addition 10 + 6 = 16 mov ax, 10 add ax, 6 Java: ax = 10; ax = ax + 5;

  4. Subtraction 10 – 6 = 4 mov ax, 10 sub ax, 6 Java: ax = 10; ax = ax - 6;

  5. Multiplication 4*5 = 20 mov ax, 4 imul 5 Java: ax = 4; ax = ax * 5;

  6. Division 13 ÷ 5 ( = 2 remainder 3)‏ mov ax, 13 idiv 5 ax would have the quotient value dx has the remainder value

More Related