1 / 12

Pertemuan 7 Instruksi Bahasa Rakitan 8088

Pertemuan 7 Instruksi Bahasa Rakitan 8088. Matakuliah : T0483 / Bahasa rakitan Tahun : 2005 Versi : 1.0. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : mendemonstrasikan program yang menggunakan instruksi logika dan kontrol proses. Outline Materi.

yin
Télécharger la présentation

Pertemuan 7 Instruksi Bahasa Rakitan 8088

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. Pertemuan 7Instruksi Bahasa Rakitan 8088 Matakuliah : T0483 / Bahasa rakitan Tahun : 2005 Versi : 1.0

  2. Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : • mendemonstrasikan program yang menggunakan instruksi logika dan kontrol proses

  3. Outline Materi • Instruksi Logic • Instruksi Kontrol Proses

  4. <<ISI>> Instruksi Logic • Logika • Perbandingan • Pergeseran/Shift • Pemutaran/Rotate and, or, xor, not test shl, sal, shr, sar rol, ror, rcl, rcr

  5. <<ISI>> AND, OR, XOR, NOT • AND, OR, XOR • Format : Operand : DestinationOperand : S o u r c e Not Format : AND D, S OR D, S XOR D, S Register Register Memori Register Memori Accumulator Register Register Memori Register Memori Accumulator NOT D

  6. <<ISI>> TEST • Test akan melakukan pemeriksaan terhadap bit-bit dari operand-1 sesuai dengan nilai dari operand-2 • Format : • Operand Destination :S o u r c e : Test D, S Register Register Memori Register Memori Accumulator Register Memori Register Immediate Immediate Immediate

  7. <<ISI>>

  8. <<ISI>> • SAR akan melakukan pergeseran bit operand-1 ke kanan secara aritmatik sebanyak operand-2 kali • Format : • Operasi : • Cnt dapat digantikan oleh salah satu register • CX (Cnt > 255) atau CL (1 < Cnt < 255), bila Cnt = 1, maka dapat langsung dituliskan SHL AX, 1

  9. <<ISI>> • ROL (Rotate Left) dan ROR (Rotate Right) akan melakukan pemutaran bit dari operand-1 ke kiri atau ke kanan sebanyak operand-2 kali • Format : ROL D, Cnt ROR D, Cnt • Operasi :

  10. <<ISI>> RCL, RCR • RCL (Rotate With Carry Left) dan RCR (Rotate With Carry Right) akan melakukan pemutaran bit dari operand-1 dan carry flag ke kiri atau ke kanan sebanyak operand-2 kali • Format : RCL D, Cnt RCR D, Cnt • Operasi :

  11. <<ISI>> • Instruksi Kontrol Proses • Carry : clc, stc, cmc • Direction : cld, std • Interrupt : cli, sti • CLC (Clear Carry flag), STC (Set Carry flag), • CMC (Complement Carry flag) • CLD (Clear Direction flag), STD (Set Direction flag) • CLI (Clear Interrupt flag), STI (Set Interrupt flag)

  12. << CLOSING>> • Instruksi Logika mempengaruhi flag register • Flag register umumnya digunakan untuk mengontrol alur program / kontrol proses

More Related