UNKLAB FORUM

Forum Mahasiswa & Alumni Universitas Klabat
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in
Bagi Guest atau user yang tidak terdaftar, mohon maaf karena ada beberapa thread tidak bisa diakses oleh guest, oleh karena itu, sebaiknya anda registrasi terlebih untuk bisa mengakses penuh forum ini. Baca dulu peraturan forum ini. Terima Kasih
Navigation
 Index
 Memberlist
 Profile
 FAQ
 Search
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Lowongan Pekerjaan PT. PNM (Persero)
Wed Nov 08, 2017 7:01 pm by CLiFF

» .NET Programming
Tue Mar 15, 2011 6:49 pm by Marvin07

» Bagaimana Menginstal OS dari USB???
Thu Feb 10, 2011 9:55 pm by unaitech

» Automatic Installation BackTrack 3 Final | Dual Booting
Thu Feb 10, 2011 9:53 pm by unaitech

» simple hacking test
Thu Feb 10, 2011 7:38 pm by and213

» [tutor] How To Patch SQL Injection Bug
Thu Feb 10, 2011 9:52 am by unaitech

» what ur distro..?
Thu Feb 10, 2011 9:48 am by unaitech

» netcut source-code
Thu Feb 10, 2011 9:44 am by unaitech

» Ragnarok Online
Mon Jan 31, 2011 1:57 pm by Marvin07

FRIENDS
Ads

    No ads available.



    Share | 
     

     8085 Commands

    View previous topic View next topic Go down 
    AuthorMessage
    animonzterz
    Administrator
    Administrator
    avatar

    Male Number of posts : 443
    Age : 28
    Location : Mid Lane
    Points : 46
    Registration date : 2008-06-07

    PostSubject: 8085 Commands   Sat Jun 07, 2008 8:51 pm

    berikut commands untuk 8085

    Data Movement :

    MOV R1, R2 : pindah data dari register R2 to R1
    MOV M, R : pindah data dari register R ke memory yang berada dalam HL pair
    MOV R, M : pindah data dari memory yang alamatnya di HL pair ke register R
    MVI R, DATA : Isi data ke register R (DATA berisi nilai contoh : AF)
    MVI M, DATA : Isi data ke Memory di HL pair
    STA addr : Data dalam accumulator di isi ke alamat addr (Contoh : STA F100)
    LDA addr : Data dalam memory "addr" di isi ke accumulator
    STAX RP : Data di accumulator di isi ke memory RP
    LDAX RP : Data dari memory di alamat RP diisi ke Accumulator
    LXI RP, DATA : Data di kopi ke dalam RP
    SHLD addr : Mengisi isi dari register L ke memory di "addr" dan isi dari H ke lokasi berikut
    LHLD addr : Data dalam alamat "addr" diisi ke register L dan lokasi berikutnya ke register H
    XCHG : Tukar isi HL pair dan DE pair
    PCHC : copy isi dari HL pair ke dalam program counter (PC)

    Ket :
    addr = address(maksudnya tulis alamat mis : F100)
    R = Register (B,C,D,E,H, DAN L)
    RP = Register Pair (BC, DE ato HL)
    Data = data bilangan dalam hexadecimal (mis : D2)


    contoh program sederhana menggunakan data movement

    Code:

    Program Swap 2 bilangan. Bilangan yang pertama di memory F100 dan yang kedua di F101

    LXI H, F100
    LXI D, F101 
    MOV B,M
    LDAX D
    MOV M,A
    XCHG
    MOV M, B
    RST 1


    Semoga membantu dan maaf kalo ada salah...
    Mohon maaf kalo ada salah..rendeer
    to be continue...
    Back to top Go down
    View user profile
    sacrofia
    Moderator
    Moderator
    avatar

    Male Number of posts : 460
    Age : 28
    Location : Jushin
    Points : 4
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Sun Jun 08, 2008 1:05 pm

    Ikutan juga ah..

    Arithmetic Commands :

    Increment
    INR R : r=r+1
    INR M : m=m+1
    INX RP : hl=hl+1

    Decrement
    DCR R : r=r-1
    DCR M : m=m-1
    DCX RP : hl=hl-1

    Addition
    ADD R : a=a+r
    ADD M : a=a+m
    ADI data : a=a+data
    ADC R : a=a+r (dengan carry)
    ADC M : a=a+m (dengan carry)
    ACI data : a=a+data (dengan carry)
    DAD RP : tambahkan nilai dari register pair ke HL

    Subtraction
    SUB R : a=a-r
    SUB M : a=a-m
    SUI data : a=a-data
    SBB R : a=a-r (dengan carry)
    SBB M : a=a-m (dengan carry)
    SBI data : a=a-data (dengan carry)

    ket :
    a : nilai di accumulator
    r : nilai di register
    m : nilai di memory
    hl : nilai di register pair HL
    dengan carry : carry di hitung juga (mis: 101 + 001 = 010010, bukan 110)

    ex: Program penjumlahan dari data di F100 dan F101, hasilnya di F102

    LXI F100
    MOV A,M
    INX H
    MOV B,M
    ADD B
    INX H
    MOV M,A
    RST 1


    maap klo membingunkan
    ok deh, klo ada salah mohon bantuannya ya
    Rolling Eyes Razz
    Back to top Go down
    View user profile http://heavenbb.forumsland.com
    CLiFF
    Administrator
    Administrator
    avatar

    Male Number of posts : 564
    Age : 31
    Location : Anywhere...
    Points : 10009
    Registration date : 2008-06-03

    PostSubject: Re: 8085 Commands   Sun Jun 08, 2008 2:12 pm

    ampun bos.. bos...

    thanx.. jadi bernostalgia nih.. waktu ambe assembly beberapa smester yang lalu...drunken

    mantap...

    keep posting neh....
    Back to top Go down
    View user profile http://unklab.forum.st
    animonzterz
    Administrator
    Administrator
    avatar

    Male Number of posts : 443
    Age : 28
    Location : Mid Lane
    Points : 46
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Sun Jun 08, 2008 5:16 pm

    Lanjut...
    Jump Instruction :

    JMP addr : Jump ke instruksi di addr
    JC addr : Jump ke instruksi di addr jika carry flag = 1
    JNC addr : Jump ke instruksi di addr jika carry flag = 0
    JP addr : Jump ke instruksi di addr jika sign flag = 0
    JM addr : Jump ke instruksi di addr jika sign flag = 1
    JPE addr : Jump ke instruksi di addr parity flag = 1
    JPO addr : Jump ke instruksi di addr jika parity flag = 0
    JZ addr : Jump ke instruksi di addr jika zero flag = 1
    JNZ addr : Jump ke instruksi di addr jika zero flag =0

    Ket :
    addr = address
    flag berubah saat terjadi operasi aritmatika

    to be continue``
    Back to top Go down
    View user profile
    M_Negro
    Moderator
    Moderator
    avatar

    Male Number of posts : 485
    Age : 29
    Location : UNKLAB
    Points : 66
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Mon Jun 09, 2008 8:07 am

    tunggu ngoni kita ambe assembly....hikz
    Back to top Go down
    View user profile
    sacrofia
    Moderator
    Moderator
    avatar

    Male Number of posts : 460
    Age : 28
    Location : Jushin
    Points : 4
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Mon Jun 09, 2008 3:38 pm

    yang tabah acong ya Razz

    nih lanjut lagi biar cepet kelarnya ...

    Call Instruction :

    CALL addr : Call ke instruksi di addr
    CC addr : Call ke instruksi di addr jika carry flag = 1
    CNC addr : Call ke instruksi di addr jika carry flag = 0
    CP addr : Call ke instruksi di addr jika sign flag = 0
    CM addr : Call ke instruksi di addr jika sign flag = 1
    CPE addr : Call ke instruksi di addr jika parity flag = 1
    CPO addr : Call ke instruksi di addr jika parity flag = 0
    CZ addr : Call ke instruksi di addr jika zero flag = 1
    CNZ addr : Call ke instruksi di addr jika zero flag = 0
    RET : jump ke perintah Call terakhir dan melaksanakan next instruction

    ket: beda dengan Jump, Call instruction punya Ret (return) yang akan loncat balik Razz
    yang lainnya sama dengan Jump
    Back to top Go down
    View user profile http://heavenbb.forumsland.com
    animonzterz
    Administrator
    Administrator
    avatar

    Male Number of posts : 443
    Age : 28
    Location : Mid Lane
    Points : 46
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Sat Jun 14, 2008 6:08 pm

    sambung trus

    Logical Command

    ANA R : Operasi Bitwise AND antara accumulator dengan register R
    ANA M : Operasi Bitwise AND antara Accumulator dengan data di memory dgn alamat HL pair
    ANI data : Operasi Bitwise AND antara accumulator dengan data


    XRA R : Operasi Bitwise XOR antara accumulator dengan register R
    XRA M : Operasi Bitwise XOR antara Accumulator dengan data di memory dgn alamat HL pair
    XRI data : Operasi Bitwise XOR antara accumulator dengan data


    ORA R : Operasi Bitwise AND antara accumulator dengan register R
    ORA M : Operasi Bitwise AND antara Accumulator dengan data di memory dgn alamat HL pair
    ORI data : Operasi Bitwise AND antara accumulator dengan data


    Keterangan :
    Semua Operasi di atas hasilnya disimpan di Accumulator
    Semua Flag berubah saat operasi

    to be continue...
    Back to top Go down
    View user profile
    YokQ
    Moderator
    Moderator
    avatar

    Male Number of posts : 49
    Age : 33
    Location : Earth
    Points : 0
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Sun Jun 15, 2008 2:34 pm

    gila.. cinta banget lo ama phaneendra ya..
    Back to top Go down
    View user profile
    animonzterz
    Administrator
    Administrator
    avatar

    Male Number of posts : 443
    Age : 28
    Location : Mid Lane
    Points : 46
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Tue Jun 17, 2008 9:19 pm

    Ya iyalah....
    sang maestro....

    _________________
    Let them hate us as long as they fear us

    Back to top Go down
    View user profile
    bons
    Novice
    Novice
    avatar

    Male Number of posts : 58
    Points : 0
    Registration date : 2008-06-19

    PostSubject: Re: 8085 Commands   Thu Jun 19, 2008 6:57 pm

    OUwwww ...
    hebat... skali...
    qta baru semester lalu.. so lupa.... samua..
    wakawkakawk
    Back to top Go down
    View user profile
    sacrofia
    Moderator
    Moderator
    avatar

    Male Number of posts : 460
    Age : 28
    Location : Jushin
    Points : 4
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Thu Jun 19, 2008 8:55 pm

    siapa juga yang ingat ...
    klo qt cuma da ba lia dari buku study Razz
    Back to top Go down
    View user profile http://heavenbb.forumsland.com
    CLiFF
    Administrator
    Administrator
    avatar

    Male Number of posts : 564
    Age : 31
    Location : Anywhere...
    Points : 10009
    Registration date : 2008-06-03

    PostSubject: Re: 8085 Commands   Fri Jun 20, 2008 12:18 pm

    BACK TO THE TOPIC.....OK
    JANGAN OOT

    _________________
    Einstein said "The true definition of stupidity is to do the same thing time and again and expect a different outcome."





    http://unklab.forum.st/
    Back to top Go down
    View user profile http://unklab.forum.st
    sacrofia
    Moderator
    Moderator
    avatar

    Male Number of posts : 460
    Age : 28
    Location : Jushin
    Points : 4
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Fri Jun 20, 2008 3:29 pm

    nah, di marahin ama om Admin pale

    lanjut ne monz :

    CMP R : membandingkan data di accumulator dengan data di register R *
    CMP M : membandingkan data di accumulator dengan data di memory M dengan alamat HL pair*
    CPI data : membandingkan data di accumulator dengan "nilai data"
    STC : menjadikan carry flag 1
    CMC : complement (invers) carry flag
    CMA : complement (invers) nilai dari accumulator dalam bitwise

    * ) jika A < pembanding, maka carry flag = 1
    jika A = pembanding, maka zero flag = 1
    Back to top Go down
    View user profile http://heavenbb.forumsland.com
    animonzterz
    Administrator
    Administrator
    avatar

    Male Number of posts : 443
    Age : 28
    Location : Mid Lane
    Points : 46
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Sat Jun 21, 2008 6:29 pm

    Stack Operations

    PUSH rp : Push content of register pair into stack.
    PUSH PSW : Push content of Accumulator and flag into stack
    POP rp : Pop two number in stack into high and low register
    POP PSW : Pow two number in stack into Accumulator and flag
    XTHL : Exchange top of stack with HL pair
    SPHL : Copies the contents of HL to the stack pointer

    _________________
    Let them hate us as long as they fear us

    Back to top Go down
    View user profile
    CR7
    Student
    Student
    avatar

    Male Number of posts : 116
    Location : Portugal
    Points : 5
    Registration date : 2008-06-24

    PostSubject: Re: 8085 Commands   Wed Jul 02, 2008 3:29 pm

    Lanjut Bossss...

    Masih ingat dengan Factorial??????
    Back to top Go down
    View user profile
    poe
    Newbie
    Newbie
    avatar

    Male Number of posts : 20
    Age : 29
    Location : di awang-awang
    Points : 7
    Registration date : 2008-07-07

    PostSubject: program   Fri Jul 11, 2008 9:30 pm

    Fibonnaci dang??
    Back to top Go down
    View user profile
    animonzterz
    Administrator
    Administrator
    avatar

    Male Number of posts : 443
    Age : 28
    Location : Mid Lane
    Points : 46
    Registration date : 2008-06-07

    PostSubject: Re: 8085 Commands   Fri Jul 11, 2008 9:33 pm

    masih ingat noch...

    eh poe... maso di chat room kwa

    _________________
    Let them hate us as long as they fear us

    Back to top Go down
    View user profile
    Lbo
    Newbie
    Newbie
    avatar

    Male Number of posts : 13
    Age : 23
    Location : outside the world inside haven
    Points : 1
    Registration date : 2008-09-17

    PostSubject: Re: 8085 Commands   Thu Jan 22, 2009 6:42 pm

    Ada yg punya App NASM?
    Back to top Go down
    View user profile http://wap.foxcun.kan.su
    Donutz
    Novice
    Novice
    avatar

    Male Number of posts : 91
    Age : 28
    Points : 0
    Registration date : 2008-09-14

    PostSubject: Re: 8085 Commands   Thu Jan 29, 2009 3:30 am

    p qt ada stw
    mar ntau klo itu yang ng cari

    mar klo suka download disini j
    http://www.nasm.us/pub/nasm/releasebuilds/2.05.01/nasm-2.05.01.tar.gz
    Back to top Go down
    View user profile
    jzt.nwbie
    Administrator
    Administrator
    avatar

    Male Number of posts : 529
    Location : /home/jzt.nwbie
    Points : 109
    Registration date : 2008-09-16

    PostSubject: Re: 8085 Commands   Thu Jan 29, 2009 10:07 pm

    eHm...
    klo nda slh .tar.gz itu filenya Linux...!!!

    @Lbo
    itu NASM mo pke dimana? Windows or Linux.?

    _________________
    wanna be computer geek, nerd, etc...!!!
    Back to top Go down
    View user profile
    Sponsored content




    PostSubject: Re: 8085 Commands   

    Back to top Go down
     
    8085 Commands
    View previous topic View next topic Back to top 
    Page 1 of 1

    Permissions in this forum:You cannot reply to topics in this forum
    UNKLAB FORUM :: KLABAT UNIVERSITY :: Computer Science Faculty :: Programming :: Assembly-
    Jump to: