home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
WINER.ZIP
/
GETSEG.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-05-13
|
370b
|
22 lines
;GETSEG.ASM, retrieves the current DEF SEG setting
;Copyright (c) 1991 Ethan Winer
;Declare: DECLARE FUNCTION GetSeg%()
;Usage: CurrentSeg = GetSeg%
.Model Medium, Basic
.Data
Extrn B$Seg:Word
.Code
GetSeg Proc
Mov AX,B$Seg ;load the value from B$Seg
Ret ;return with the function output in AX
GetSeg Endp
End