190 likes | 320 Views
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com. Assembly Language. Tujuan Khusus : Mengetahui algoritma pemrograman secara umum Mengetahui jenis kategori perintah Mengetahui implementasi perintah assembly.
E N D
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language Tujuan Khusus : Mengetahui algoritma pemrograman secara umum Mengetahui jenis kategori perintah Mengetahui implementasi perintah assembly
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language • Kategori Algoritma Program : • Deklarasi Variabel & Data Transfer • Perintah Aritmatika( + , - , x , : ) • Perintah Logika( AND , OR , NOT ) • Seleksi Kondisi( IF … THEN … ) • Perulangan/Looping • Stack & Function/Sub Routine
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language • Kategori Algoritma Program : • Deklarasi Variabel & Data Transfer • Perpindahan/Duplikasi Data terjadi antara : • Konstanta -> Register immediate addressing • Konstanta -> Memory immediate addressing • Register -> Register register direct • Memory -> Register indirect addressing • Konstanta -> Memory absolute addressing • Register -> Memory absolute addressing • Memory -> Memory absolute addressing
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language MOVEA.L #$2500, A0 MOVE.W (A0),D1 MOVE.W D0, D1 register MOVEA.L A0, A1 MOVE.W D0, $2000 MOVE.L #$789ABCDE, D1 MOVE.L $2300, $2400 memory MOVEA.L $2100, A5 constant MOVE.W #$1234, $2200 MOVE.W #$3456, $2000
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language Kategori Algoritma Program : 2. Perintah Aritmatika
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language Kategori Algoritma Program : 2. Perintah Aritmatika ADD konstanta, registeradd #1, d0 ADD register, register add d0, d1 SUB konstanta, registersub #10, d0 SUB register, register sub d0, d1 MULS kontanta, registermuls #10, d0 DIVS kontanta, registerdivs #3, d0
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language Kategori Algoritma Program : 3. Perintah Logika
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language Kategori Algoritma Program : 3. Perintah Logika AND konstanta, registerand #1, d0 AND register, register and d0, d1 OR konstanta, registeror #10, d0 OR register, registeror d0, d1 NOT registernot d0 EOR kontanta, registereor #3, d0
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language Kategori Algoritma Program : 4. Seleksi & Looping
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com Assembly Language