Last change
on this file since 2511 was 2511, checked in by bird, 26 years ago |
Heapchanges: Heap is splitted into a swappable and a resident. The heaps
are dynamically growable.
|
File size:
980 bytes
|
Line | |
---|
1 | /* $Id: asmutils.h,v 1.4 2000-01-24 18:18:59 bird Exp $
|
---|
2 | *
|
---|
3 | * Assembly utilities.
|
---|
4 | *
|
---|
5 | * Copyright (c) 1998-1999 knut st. osmundsen
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | *
|
---|
9 | */
|
---|
10 | #ifndef _asmutils_h_
|
---|
11 | #define _asmutils_h_
|
---|
12 |
|
---|
13 | #ifdef __cplusplus
|
---|
14 | extern "C" {
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | extern unsigned short _System GetCS(void);
|
---|
18 | extern unsigned short _System GetDS(void);
|
---|
19 | extern unsigned short _System GetES(void);
|
---|
20 | extern unsigned short _System GetFS(void);
|
---|
21 | extern unsigned short _System GetGS(void);
|
---|
22 | extern unsigned short _System GetSS(void);
|
---|
23 |
|
---|
24 | extern void _System DisableInterrupts(void); /* uniprocessor only */
|
---|
25 | extern void _System EnableInterrupts(void); /* uniprocessor only */
|
---|
26 |
|
---|
27 | #if 0
|
---|
28 | //extern void _System Int3(void);
|
---|
29 | extern int _System Int3(void);
|
---|
30 | #else
|
---|
31 | #include <builtin.h>
|
---|
32 | #define Int3() __interrupt(3)
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | //Negative offsets don't work yet?
|
---|
36 | extern void __stdcall memmov(void *p, signed int off, unsigned int len);
|
---|
37 |
|
---|
38 | #ifdef __cplusplus
|
---|
39 | }
|
---|
40 | #endif
|
---|
41 | #endif
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.