home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 9
/
CDACTUAL9.iso
/
share
/
Dos
/
VARIOS
/
pascal
/
SWAG9605.DDD
/
0121_Keyboard LED program.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1996-05-31
|
407 b
|
29 lines
Program leds;
Uses Crt;
Var
l : Byte;
Procedure led(led: Byte); Assembler;
ASM
mov AL, $ED
out $60, AL
mov CX, $200
@@1:
loop @@1
mov AL, led
out $60, AL
End;
Begin
l := 1;
While not KeyPressed do
Begin
led(l);
l := l SHL 1;
If l = 8 then l := 1;
Delay(200);
End;
While KeyPressed do ReadKey;
End.