1 / 6

PENGAMBILAN KEPUTUSAN

PENGAMBILAN KEPUTUSAN. INSTRUKSI JUMP. Secara umum, lompatan pada bahasa rakitan dapat dibagi menjadi dua tipe, yaitu :. U nconditional Jump (Lompatan tidak bersyarat) Unconditional jump adalah instruksi lompatan yang digunakan tanpa melihat kondisi dari program.

hoang
Download Presentation

PENGAMBILAN KEPUTUSAN

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. PENGAMBILAN KEPUTUSAN

  2. INSTRUKSI JUMP Secara umum, lompatan pada bahasa rakitan dapat dibagi menjadi dua tipe, yaitu : • UnconditionalJump (Lompatan tidak bersyarat) • Unconditional jump adalah instruksi lompatan yang digunakan tanpa melihat kondisi dari program. • Instruksi yang biasanya digunakan untuk melakukan unconditional jump ini adalah instruksi JMP, dengan sintak : JMP Tujuan • Conditional Jump (Lompatan bersyarat) • Berbeda dari unconditional jump, conditional jump adalah instruksi lompatan yang digunakan dengan melihat kondisi dari program. Instruksi conditional jump selalu mengikuti instruksi CMP (untuk melihat kondisi dari program).

  3. Instruksi CMP Instruksi CMPdigunakan untuk membandingkan dua buah operand, dengan sintaks: CMP Operand1, Operand2 Flag yang terpengaruh oleh instruksi CMP ini adalah

  4. Jenis-jenis lompatan bersyarat Jenis-jenis dari lompatan bersyarat ditunjukkan pada tabel berikut :

More Related