Download presentation
Presentation is loading. Please wait.
Published byGlenna Gunawan Modified over 6 years ago
1
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
2
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
3
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
4
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language MOVE.W D0, D1 MOVEA.L #$2500, A0 MOVE.W (A0),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
5
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language Kategori Algoritma Program : 2. Perintah Aritmatika
6
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language Kategori Algoritma Program : 2. Perintah Aritmatika ADD konstanta, register add #1, d0 ADD register, register add d0, d1 SUB konstanta, register sub #10, d0 SUB register, register sub d0, d1 MULS kontanta, register muls #10, d0 DIVS kontanta, register divs #3, d0
7
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language Kategori Algoritma Program : 3. Perintah Logika
8
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language Kategori Algoritma Program : 3. Perintah Logika AND konstanta, register and #1, d0 AND register, register and d0, d1 OR konstanta, register or #10, d0 OR register, register or d0, d1 NOT register not d0 EOR kontanta, register eor #3, d0
9
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language Kategori Algoritma Program : 4. Seleksi & Looping
10
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
BCC Branch Carry Clear - Branch if the C-flag is 0. BCS Branch Carry Set - Branch if the C-flag is 1. BEQ Branch EQual - Branch if the Z-flag is 1. BNE Branch Not Equal - Branch if the Z-flag is 0. BGE Branch Greater or Equal - Branch if N and V are equal. BGT Branch Greater Than - Branch if N and V are equal and Z=0. BHI Branch HIgher than - Branch if both C and Z are 0. BLE Branch Less or Equal - Branch if Z=1 or if N and V are different. BLS Branch Lower or Same - Branch if C=1 or Z=1. BLT Branch Less Than - Branch if N and V are different. BMI Branch MInus - Branch if N=1. BPL Branch PLus - Branch if N=0. BVC Branch V Clear - Branch if V=0 BVS Branch V Set - Branch if V=1. BRA BRanch Always Slide 7 Mikroprosesor Sub. Algoritma Program___ Assembly Language BCC Branch Carry Clear - Branch if the C-flag is 0. BCS Branch Carry Set - Branch if the C-flag is 1. BEQ Branch EQual - Branch if the Z-flag is 1. BNE Branch Not Equal - Branch if the Z-flag is 0. BGE Branch Greater or Equal - Branch if N and V are equal. BGT Branch Greater Than - Branch if N and V are equal and Z=0. BHI Branch HIgher than - Branch if both C and Z are 0. BLE Branch Less or Equal - Branch if Z=1 or if N and V are different. BLS Branch Lower or Same - Branch if C=1 or Z=1. BLT Branch Less Than - Branch if N and V are different. BMI Branch MInus - Branch if N=1. BPL Branch PLus - Branch if N=0. BVC Branch V Clear - Branch if V=0 BVS Branch V Set - Branch if V=1. BRA BRanch Always
11
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
BCC Branch Carry Clear - Branch if the C-flag is 0. BCS Branch Carry Set - Branch if the C-flag is 1. BEQ Branch EQual - Branch if the Z-flag is 1. BNE Branch Not Equal - Branch if the Z-flag is 0. BGE Branch Greater or Equal - Branch if N and V are equal. BGT Branch Greater Than - Branch if N and V are equal and Z=0. BHI Branch HIgher than - Branch if both C and Z are 0. BLE Branch Less or Equal - Branch if Z=1 or if N and V are different. BLS Branch Lower or Same - Branch if C=1 or Z=1. BLT Branch Less Than - Branch if N and V are different. BMI Branch MInus - Branch if N=1. BPL Branch PLus - Branch if N=0. BVC Branch V Clear - Branch if V=0 BVS Branch V Set - Branch if V=1. BRA BRanch Always Slide 7 Mikroprosesor Sub. Algoritma Program___ Assembly Language
12
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
13
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
14
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
15
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
16
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
17
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
18
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
19
Slide 7 Mikroprosesor Sub. Algoritma Program___ putut.son@gmail.com
Assembly Language
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.