| Last change
 on this file since 7068 was             2915, checked in by bird, 26 years ago | 
        
          | 
Some corrections and a test program.
 | 
        
          | File size:
            609 bytes | 
      
      
| Line |  | 
|---|
| 1 | ; $Id: libGetCS.asm,v 1.1 2000-02-26 20:19:26 bird Exp $ | 
|---|
| 2 | ; | 
|---|
| 3 | ; Gets the CS. | 
|---|
| 4 | ; | 
|---|
| 5 | ; Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no) | 
|---|
| 6 | ; | 
|---|
| 7 | ; Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 8 | ; | 
|---|
| 9 | .386p | 
|---|
| 10 |  | 
|---|
| 11 | ; | 
|---|
| 12 | ; Exported symbols | 
|---|
| 13 | ; | 
|---|
| 14 | public libHelperGetCS | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | CODE32 segment | 
|---|
| 18 | assume CS:CODE32, DS:FLAT, SS:NOTHING | 
|---|
| 19 | ;; | 
|---|
| 20 | ; Gets the value of the CS register. | 
|---|
| 21 | ; @cproto    USHORT APIENTRY  libHelperGetCS(void) | 
|---|
| 22 | ; @returns   CS value. | 
|---|
| 23 | ; @author    knut st. osmundsen (knut.stange.osmundsen@pmsc.no) | 
|---|
| 24 | libHelperGetCS proc near | 
|---|
| 25 | xor eax,eax | 
|---|
| 26 | mov ax,cs | 
|---|
| 27 | ret | 
|---|
| 28 | libHelperGetCS endp | 
|---|
| 29 |  | 
|---|
| 30 | CODE32 ends | 
|---|
| 31 | end | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.