Laynetworks  
Web laynetworks.com Google
Home | Site Map | Tell a friends
Management Tutorials
Download
Tutorials
History
Computer Science
Networking
OS - Linux and Unix
Source Code
Script & Languages
Protocols
Glossary
IGNOU
Quiz
About Us
Contact Us
Feedback
 
Sign up for our Email Newsletter
 
Get Paid for Your Tech Turorials / Tips

 

 

Home > Computer Science > CS 01
 
CS 01 CS 02 CS 03 CS 04 CS 05 CS 06 CS 07 CS 08 CS 09 CS 10 CS 11 CS 12 CS 13 CS 14 CS 15 CS 16 CS 17
Page : 1 2 3 4 5 6 7 8
PROGRAM TO DISPLAY NO.1 TO 8 ON 7-SEGMENT WITH BLINKING SEGMENT NO.5
 
org 0000h
mov psw,#00h
mov a,#00h
setb c
mov r3,#70h
mov r4,#70h

x1: mov p2,#01h ; p2 display select
mov p0,#00h ; p0 segments
acall del
mov p0,#44h
acall del

mov p2,#02h
mov p0,#00h
acall del
mov p0,#3dh
acall del

mov p2,#04h
mov p0,#00h
acall del
mov p0,#7ch
acall del

mov p2,#08h
mov p0,#00h
acall del
mov p0,#4eh
acall del

jnc x2
djnz r3,x3
ajmp x4
x3: mov p2,#80h
mov p0,#00h
acall del
mov p0,#7ah
acall del
ajmp x5

x2: djnz r4,x5
cpl c
mov r4,#70h
ajmp x5
x4: mov r3,#70h
cpl c

x5: mov p2,#40h
mov p0,#00h
acall del
mov p0,#7bh
acall del

mov p2,#20h
mov p0,#00h
acall del
mov p0,#54h
acall del

mov p2,#10h
mov p0,#00h
acall del
mov p0,#7fh
acall del

ajmp x1

del: mov b,#7fh
djnz b,$
ret

end
 
Page : 1 2 3 4 5 6 7 8
 
Donation | Useful links | Link to Laynetworks.com | Legal | SharePoint Development
Copyright © 2000-2010 Lay Networks All rights reserved.