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 CHECK THE KEY BOARD
 
org 0000h
mov psw,#00h
mov dptr,#0400h
mov r7,#00h
mov b,#00h

x7: mov a,r7
movc a,@a+dptr
mov p0,a

mov r0,#08h
mov a,b
setb c
x1: rlc a
mov p2,a
djnz r0,x1

acall kb
ajmp x7

kb: mov a,p1
jnb acc.0,z1
jnb acc.1,z2
jnb acc.2,z3
jnb acc.3,z4
jnb acc.4,z5
ret

z1: mov r7,#01h
ret
z2: mov r7,#02h
ret
z3: mov r7,#03h
ret
z4: mov r7,#04h
ret
z5: mov r7,#05h
ret

org 0400h

db 77h
db 44h
db 3dh
db 7ch
db 4eh
db 7ah
db 7bh
db 54h
db 7fh
db 7eh

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.