home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR19
/
SNIP0693.ZIP
/
LANTAST.ASM
< prev
next >
Wrap
Assembly Source File
|
1993-03-13
|
1KB
|
44 lines
;FUNCTION LANTASTIC()
;--------------------------------------------------:
; CLIPPER OBJECT file to return the boolean status :
; of Lantastic operating. C. Cremer, 19-Feb-1993 :
;--------------------------------------------------:
public LANTASTIC ; For linker to see it
extrn __retl:far ; reference to Clipper extend system
DGROUP GROUP DATASG
DATASG SEGMENT PUBLIC '_DATA'
; no data
DATASG ENDS
LANTAST_TEXT SEGMENT 'CODE'
ASSUME CS:LANTAST_TEXT,DS:DGROUP
LANTASTIC PROC FAR
push BP ; preserve return address,
mov BP,SP ; base ptr, segment, & index regs
push DS
push ES
push SI
push DI
xor AX,AX
int 2Ah
or AH,AH ; set flags for AH
jz no_lan
mov AX,1 ; ax=True
jmp short popregs
no_lan: xor AX,AX ; ax=False
popregs: pop DI
pop SI
pop ES ; restore registers
pop DS
pop BP
; Return the status
push AX
call __retl ; pass logical ret to Clipper
add SP,2 ; fix up stack
ret ; far return
LANTASTIC ENDP
LANTAST_TEXT ENDS
END