source: trunk/src/kernel32/asmutil.h@ 9946

Last change on this file since 9946 was 9946, checked in by sandervl, 22 years ago

memory map updates

File size: 863 bytes
Line 
1/* $Id: asmutil.h,v 1.2 2003-03-27 14:13:10 sandervl Exp $ */
2
3/*
4 * Misc assembly functions for OS/2
5 * Copyright 1998-2000 Sander van Leeuwen
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 */
9#ifndef __ASMUTIL_H__
10#define __ASMUTIL_H__
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16ULONG getEAX();
17ULONG getEBX();
18ULONG getESP();
19USHORT getSS();
20USHORT getDS();
21USHORT getCS();
22USHORT getSS();
23USHORT getES();
24USHORT getFS();
25USHORT getGS();
26
27void CDECL Mul32x32to64(PVOID result, DWORD op1, DWORD op2);
28void CDECL Sub64(LARGE_INTEGER *a, LARGE_INTEGER *b, LARGE_INTEGER *result);
29void CDECL Add64(LARGE_INTEGER *a, LARGE_INTEGER *b, LARGE_INTEGER *result);
30
31
32void CDECL set_bit(int bitnr, void *addr);
33void CDECL clear_bit(int bitnr, void *addr);
34int CDECL test_bit(int bitnr, void *addr);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif //__ASMUTIL_H__
Note: See TracBrowser for help on using the repository browser.