home *** CD-ROM | disk | FTP | other *** search
- ;* ------------------------------------------------------- *
- ;* SHOW_LED.ASM *
- ;* (c) 1990 Ulrich Schmitz & TOOLBOX *
- ;* ------------------------------------------------------- *
- .model small
- .code
-
- CODE SEGMENT BYTE PUBLIC
- ASSUME CS:CODE
- PUBLIC _show_led
-
- _show_led PROC NEAR
- mov bx, sp
- mov ax, SS:[bx+4]
- mov bl, al
- cli
- xor cx, cx
- l1: in al, 64h ;Inhalt Statusport
- test al, 2
- loopne l1
-
- ;--- LED's setzen
-
- mov al, 0EDh ;Set/Reset Mode Indikator
- out 60h, al ;als Befehlsbyte schreiben
- l2: in al, 64h
- test al, 1
- loope l2
-
- mov al, bl ;3-Bit Befehlscode schreiben
- out 60h, al
- l3: in al, 64h
- test al, 1
- loope l3
-
- sti
-
- ret 2
-
- _show_led ENDP
-
- CODE ENDS
- END
- ;* ------------------------------------------------------- *
- ;* SHOW_LED.ASM *
-