|
Last change
on this file since 8001 was 7421, checked in by phaller, 24 years ago |
|
Added ODIN profiler employing the VAC308 generated profiler hooks
|
|
File size:
980 bytes
|
| Line | |
|---|
| 1 | ; $Id: odinprof.asm,v 1.1 2001-11-22 10:43:59 phaller Exp $
|
|---|
| 2 |
|
|---|
| 3 | ;/*
|
|---|
| 4 | ; * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 5 | ; * Win32 Exception handling + misc functions for OS/2
|
|---|
| 6 | ; *
|
|---|
| 7 | ; * Copyright 1998 Sander van Leeuwen
|
|---|
| 8 | ; *
|
|---|
| 9 | ; */
|
|---|
| 10 |
|
|---|
| 11 | .386p
|
|---|
| 12 | NAME odinfs
|
|---|
| 13 |
|
|---|
| 14 | CODE32 SEGMENT DWORD PUBLIC USE32 'CODE'
|
|---|
| 15 | ASSUME DS:FLAT, SS:FLAT
|
|---|
| 16 |
|
|---|
| 17 | PUBLIC GetFS
|
|---|
| 18 | GetFS proc near
|
|---|
| 19 | mov eax, fs
|
|---|
| 20 | ret
|
|---|
| 21 | GetFS endp
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | PUBLIC SetFS
|
|---|
| 25 | SetFS proc near
|
|---|
| 26 | mov eax, [esp+4]
|
|---|
| 27 | mov fs, eax
|
|---|
| 28 | ret
|
|---|
| 29 | SetFS endp
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | PUBLIC SetReturnFS
|
|---|
| 33 | SetReturnFS proc near
|
|---|
| 34 | push fs
|
|---|
| 35 | mov eax, [esp+8]
|
|---|
| 36 | mov fs, eax
|
|---|
| 37 | pop eax
|
|---|
| 38 | ret
|
|---|
| 39 | SetReturnFS endp
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 | PUBLIC RestoreOS2FS
|
|---|
| 43 | RestoreOS2FS proc near
|
|---|
| 44 | push 150bh ; @@@PH that's NOT the clean way ! :)
|
|---|
| 45 | mov ax, fs
|
|---|
| 46 | pop fs
|
|---|
| 47 | ret
|
|---|
| 48 | RestoreOS2FS endp
|
|---|
| 49 |
|
|---|
| 50 | CODE32 ENDS
|
|---|
| 51 | END
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.