home *** CD-ROM | disk | FTP | other *** search
- ;---------------------- BUTTON.ASM ------------------------
- ; Abfrage eines Game Adapters unter BCI Pascal
- ; Function Button (Maske) : boolean
- ;---------------------- 1987 by M.A. ----------------------
- public button
- code segment byte public 'PASCAL' ; ... Grüße an BCI ...
- assume cs:code
-
- button proc far ; Abfrage Buttons
- pop bx
- push cs
- push bx
- mov si,sp
- mov bx,[si+4] ; siehe oben...
- mov cx,0001h
- mov dx,0201h
- in al,dx ; Port lesen
- and al,0f0h ; Timer ausblenden
- test al,bl ; sein oder nichtsein?
- jp exit2
- mov cx,0000h ; dann eben nicht...
- exit2: mov ax,cx
- or ax,ax
- ret 2 ; siehe oben...
- button endp ; und fertig...
-
- code ends
- end
- ;---------------------- Ende BUTTON.ASM -------------------