Daisypath Friendship tickers

Rabu, 23 Mei 2012

pemograman makro

CATATAN : HURUF AWAL TUNGGAL SEBELUM MACRO ITU BISA DI UBAH DENGAN SEBUAH HURUF DARI NAMA KITA
CONTOH ---> m macro
                          e macro
                          u macro
                          t macro
                          i macro
                         a macro
dan di lanjutkan dengan huruf yang sesuai dengan contoh pemograman di bawah ini, sebelumnya anda harrus mendownload software assemble atau emulator 8086, sebenernya sih banyak berbagai seri, yang saya gunakan selama ini software assemble atau emulator 8086 , searching di ggogle udah banyak software yang bisa di download ...

 notebook: setiap membuat program bahasa rakitan jangan luupa penulisan "org 100h"
                  yaaa yang namanya pemograman tentunya dalam penulisan program tidak ada huruf alay :D
selamat mencoba



org 100h

a  macro
mulai1:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg1end - offset msg1 ; calculate message size.
mov dl, 10
mov dh, 00
push cs
pop es
mov bp, offset msg1
mov ah, 13h
int 10h
jmp msg1end
msg1 db "a"
msg1end:
endm

n  macro
mulai2:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg2end - offset msg2 ; calculate message size.
mov dl, 10
mov dh, 05
push cs
pop es
mov bp, offset msg2
mov ah, 13h
int 10h
jmp msg2end
msg2 db "n"
msg2end:
endm

i macro
mulai3:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg3end - offset msg3 ; calculate message size.
mov dl, 10
mov dh, 10
push cs
pop es
mov bp, offset msg3
mov ah, 13h
int 10h
jmp msg3end
msg3 db "i"
msg3end:
endm

t macro
mulai4:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg4end - offset msg4 ; calculate message size.
mov dl, 10
mov dh, 15
push cs
pop es
mov bp, offset msg4
mov ah, 13h
int 10h
jmp msg4end
msg4 db "t"
msg4end:
endm


a1  macro
mulai5:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg5end - offset msg5 ; calculate message size.
mov dl, 10
mov dh, 20
push cs
pop es
mov bp, offset msg5
mov ah, 13h
int 10h
jmp msg5end
msg5 db "a"
msg5end:
endm

a2 macro
mulai6:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg6end - offset msg6 ; calculate message size.
mov dl, 00
mov dh, 05
push cs
pop es
mov bp, offset msg6
mov ah, 13h
int 10h
jmp msg6end
msg6 db "a"
msg6end:
endm

a3 macro
mulai7:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg7end - offset msg7 ; calculate message size.
mov dl, 20
mov dh, 05
push cs
pop es
mov bp, offset msg7
mov ah, 13h
int 10h
jmp msg7end
msg7 db "i"
msg7end:
endm

a4 macro
mulai8:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg8end - offset msg8 ; calculate message size.
mov dl, 30
mov dh, 05
push cs
pop es
mov bp, offset msg8
mov ah, 13h
int 10h
jmp msg8end
msg8 db "t"
msg8end:
endm

a5 macro
mulai9:  mov al, 1
mov bh, 0
mov bl, 0100_1011b
mov cx, msg9end - offset msg9 ; calculate message size.
mov dl, 40
mov dh, 05
push cs
pop es
mov bp, offset msg9
mov ah, 13h
int 10h
jmp msg9end
msg9 db "a"
msg9end:
endm

a
n
i
t
a1
a2
a3
a4
a5

end

Tidak ada komentar:

Posting Komentar