|
Last change
on this file since 2032 was 1678, checked in by bird, 26 years ago |
|
Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.
|
|
File size:
894 bytes
|
| Line | |
|---|
| 1 | /* $Id: asmutils.h,v 1.3 1999-11-10 01:45:32 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 | //extern void _System Int3(void);
|
|---|
| 28 | extern int _System Int3(void);
|
|---|
| 29 |
|
|---|
| 30 | //Negative offsets don't work yet?
|
|---|
| 31 | extern void __stdcall memmov(void *p, signed int off, unsigned int len);
|
|---|
| 32 |
|
|---|
| 33 | #ifdef __cplusplus
|
|---|
| 34 | }
|
|---|
| 35 | #endif
|
|---|
| 36 | #endif
|
|---|
| 37 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.