Release 941122
[wine/multimedia.git] / include / registers.h
blob26a7774d19496a7cb17932f1b934945ef3ec1dcf
1 #ifndef __WINE_REGISTERS_H
2 #define __WINE_REGISTERS_H
4 #include <windows.h>
6 #ifndef PROCEMU
8 #define EAX context->sc_eax
9 #define EBX context->sc_ebx
10 #define ECX context->sc_ecx
11 #define EDX context->sc_edx
13 #define AX *(WORD*)&context->sc_eax
14 #define BX *(WORD*)&context->sc_ebx
15 #define CX *(WORD*)&context->sc_ecx
16 #define DX *(WORD*)&context->sc_edx
18 #define AL *(BYTE*)&context->sc_eax
19 #define AH *(((BYTE*)&context->sc_eax)+1)
20 #define BL *(BYTE*)&context->sc_ebx
21 #define BH *(((BYTE*)&context->sc_ebx)+1)
22 #define CL *(BYTE*)&context->sc_ecx
23 #define CH *(((BYTE*)&context->sc_ecx)+1)
24 #define DL *(BYTE*)&context->sc_edx
25 #define DH *(((BYTE*)&context->sc_edx)+1)
27 #define CS context->sc_cs
28 #define DS context->sc_ds
29 #define ES context->sc_es
30 #define SS context->sc_ss
32 #define DI context->sc_edi
33 #define SI context->sc_esi
34 #define SP context->sc_esp
35 #ifndef __FreeBSD__
36 #define EFL context->sc_eflags
37 #else
38 #define EFL context->sc_efl
39 #endif
40 #define EIP context->sc_eip
42 #define SetCflag (EFL |= 0x00000001)
43 #define ResetCflag (EFL &= 0xfffffffe)
45 #else
47 #include "bx_bochs.h"
49 #define SetCflag bx_STC()
50 #define ResetCflag bx_CLC()
52 #endif /* PROCEMU */
53 #endif /* __WINE_REGISTERS_H */