Contoh Program Bahasa Rakitan Membuat nama dengan warna

Ini Tugas ane sewaktu mata kuliah Bahasa Rakitan Gan,

script dbwah ini CoPas aja ke software namanya emulator…

tulis macro brs,klm,kar,att
mov ax,0B800h
mov es, ax
mov ah,brs
mov al,160
mul ah
mov bx,ax ; hasil perkalian brs*160 disimpan BX

mov ah,klm
mov al,2
mul ah ; hasil perkalian klm*2 disimpan AX

add bx,ax

mov ah,kar
mov al,att

mov ES:[BX],ah
mov ES:[BX+1],al
endm

baca macro brs,klm
push ax
push bx
push es
mov ax,0B800h
mov es, ax
mov ah,brs
mov al,160
mul ah
mov bx,ax ; hasil perkalian brs*160 disimpan BX

mov ah,klm
mov al,2
mul ah ; hasil perkalian klm*2 disimpan AX

add bx,ax

mov ah,ES:[BX]
mov al,ES:[BX+1]
pop ax
pop bx
pop es
endm

org 100h
dataku:

jmp utama
kalimat db ‘hallo’

utama:

mov ax,100
push ax
tulis 1,1,’I’,07h
tulis 1,2,’r’,07h
tulis 1,3,’z’,07h
tulis 1,4,’i’,07h
tulis 1,5,’q’,07h
tulis 1,6,’U’,07h
tulis 1,7,’h’,07h
tulis 1,8,’s’,07h
tulis 1,9,’i’,07h
tulis 1,10,’A’,07h
tulis 1,11,’m’,07h
tulis 1,12,’d’,07h
tulis 1,13,’i’,07h
tulis 1,14,’k’,07h
tulis 1,15,’e’,07h
tulis 1,16,’n’,07h
pop ax

int 20h

end utama

[/sourceode]

This slideshow requires JavaScript.

ni hasilnya gan

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s