Release 960606
[wine.git] / include / miscemu.h
blob0ee35f6cabad3e7b0fce5575d596351b00c2e541
1 /*
2 * Misc. emulation definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_MISCEMU_H
8 #define __WINE_MISCEMU_H
10 #include "wintypes.h"
11 #include "registers.h"
13 /* miscemu/dosmem.c */
14 extern BOOL DOSMEM_Init(void);
15 extern void DOSMEM_Tick(void);
16 extern void DOSMEM_FillBiosSegment(void);
17 extern HANDLE DOSMEM_BiosSeg;
19 /* miscemu/instr.c */
20 extern BOOL INSTR_EmulateInstruction( struct sigcontext_struct *context );
22 /* miscemu/interrupts.c */
23 extern BOOL INT_Init(void);
24 extern SEGPTR INT_GetHandler( BYTE intnum );
25 extern void INT_SetHandler( BYTE intnum, SEGPTR handler );
27 /* miscemu/int1a.c */
28 extern DWORD INT1A_GetTicksSinceMidnight(void);
30 /* miscemu/int21.c */
31 extern BOOL INT21_Init(void);
33 /* miscemu/ioports.c */
34 extern DWORD inport( int port, int count );
35 extern void outport( int port, int count, DWORD value );
38 #define INT_BARF(context,num) \
39 fprintf( stderr, "int%x: unknown/not implemented parameters:\n" \
40 "int%x: AX %04x, BX %04x, CX %04x, DX %04x, " \
41 "SI %04x, DI %04x, DS %04x, ES %04x\n", \
42 (num), (num), AX_reg(context), BX_reg(context), CX_reg(context), \
43 DX_reg(context), SI_reg(context), DI_reg(context), \
44 DS_reg(context), ES_reg(context) )
46 #endif /* __WINE_MISCEMU_H */