7 Segmen 4 Digit Berkedip ( Topview simulator )

sebelum mencoba program ini baca dulu Postingan sebelumnya

agar bisa menjalankan program di bawah ini🙂

berkedip

$mod51
org 0H
start:mov p0,#00000110b
mov p1,#00000000b
mov p2,#00000000b
mov p3,#00000000b
call delay
mov p0,#00000110b
mov p1,#00111111b
mov p2,#00000000b
mov p3,#00000000b
call delay
mov p0,#00000110b
mov p1,#00111111b
mov p2,#01100110b
mov p3,#00000000b
call delay
mov p0,#00000110b
mov p1,#00111111b
mov p2,#01100110b
mov p3,#01001111b
call delay
mov p0,#00000000b
mov p1,#00000000b
mov p2,#00000000b
mov p3,#00000000b
call delay
sjmp start
delay:mov R1,#255
delay1:mov R2,#255
delay2:mov R3,#180 (time untuk berkedip sesuai yang anda inginkan )
delay3:djnz R3,delay3
djnz R2,delay2
djnz R1,delay1
Ret
end

Terus Melangkah Maju Dan Ciptakan Inovasi Terbaru

Posted in Education

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