20 Mayıs 2015 Çarşamba

MİKROİŞLEMCİLER ASSEMBLY İÇİ BOŞ ÜÇGEN ÇİZDİRME KODU

org 100h
lea si,ucgen
mov cl,[si]
dec cl
push cx
mov dl,15
mov dh,1


dongu:
mov ah,2
mov bh,0
int 10h
mov ah,0eh
mov al,'*'
int 10h
dec dl
inc dh
loop dongu

mov cx,14

dongu1:
mov ah,2
mov bh,0
int 10h
mov ah,0eh
mov al,'*'
int 10h
inc dl
loop dongu1
pop cx
dongu2:
mov ah,2
mov bh,0
int 10h
mov ah,0eh
mov al,'*'
int 10h
dec dh
dec dl
loop dongu2
hlt

ucgen db 8

Hiç yorum yok:

Yorum Gönder