home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
JAZLIB
/
GETCS.ASM
< prev
next >
Wrap
Assembly Source File
|
1993-12-01
|
1KB
|
27 lines
Comment *
┌────────────────────────────────────────────────────────────────────────────┐
│getcs.asm │
│Return the Code segment value │
│ │
│Usage: │
│ unsigned int cs; │
│ │
│ cs = getcs(); │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*
title get cs value
name getcs
assume cs:_text
_text segment public byte 'code'
public _getcs
_getcs proc near
mov ax,cs
ret
_getcs endp
_text ends
end