Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3dc1f2df
Commit
3dc1f2df
authored
Mar 22, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the SET_AX etc. macros to not return a value.
parent
d76a16e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
+18
-17
int31.c
dlls/winedos/int31.c
+2
-1
miscemu.h
include/miscemu.h
+16
-16
No files found.
dlls/winedos/int31.c
View file @
3dc1f2df
...
...
@@ -916,7 +916,8 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
case
0x000a
:
/* Allocate selector alias */
TRACE
(
"allocate selector alias (0x%04x)
\n
"
,
BX_reg
(
context
)
);
if
(
!
SET_AX
(
context
,
AllocCStoDSAlias16
(
BX_reg
(
context
)
)))
SET_AX
(
context
,
AllocCStoDSAlias16
(
BX_reg
(
context
)
)
);
if
(
!
AX_reg
(
context
))
{
SET_AX
(
context
,
0x8011
);
/* descriptor unavailable */
SET_CFLAG
(
context
);
...
...
include/miscemu.h
View file @
3dc1f2df
...
...
@@ -179,21 +179,21 @@ extern char IO_pp_init(void);
#define RESET_ZFLAG(context) ((context)->EFlags &= ~0x0040)
#define ISV86(context) ((context)->EFlags & 0x00020000)
#define SET_AX(context,val) ((
context)->Eax = ((context)->Eax & ~0xffff) | (WORD)(val
))
#define SET_BX(context,val) ((
context)->Ebx = ((context)->Ebx & ~0xffff) | (WORD)(val
))
#define SET_CX(context,val) ((
context)->Ecx = ((context)->Ecx & ~0xffff) | (WORD)(val
))
#define SET_DX(context,val) ((
context)->Edx = ((context)->Edx & ~0xffff) | (WORD)(val
))
#define SET_SI(context,val) ((
context)->Esi = ((context)->Esi & ~0xffff) | (WORD)(val
))
#define SET_DI(context,val) ((
context)->Edi = ((context)->Edi & ~0xffff) | (WORD)(val
))
#define SET_AL(context,val) ((
context)->Eax = ((context)->Eax & ~0xff) | (BYTE)(val
))
#define SET_BL(context,val) ((
context)->Ebx = ((context)->Ebx & ~0xff) | (BYTE)(val
))
#define SET_CL(context,val) ((
context)->Ecx = ((context)->Ecx & ~0xff) | (BYTE)(val
))
#define SET_DL(context,val) ((
context)->Edx = ((context)->Edx & ~0xff) | (BYTE)(val
))
#define SET_AH(context,val) ((
context)->Eax = ((context)->Eax & ~0xff00) | (((BYTE)(val)) << 8
))
#define SET_BH(context,val) ((
context)->Ebx = ((context)->Ebx & ~0xff00) | (((BYTE)(val)) << 8
))
#define SET_CH(context,val) ((
context)->Ecx = ((context)->Ecx & ~0xff00) | (((BYTE)(val)) << 8
))
#define SET_DH(context,val) ((
context)->Edx = ((context)->Edx & ~0xff00) | (((BYTE)(val)) << 8
))
#define SET_AX(context,val) ((
void)((context)->Eax = ((context)->Eax & ~0xffff) | (WORD)(val)
))
#define SET_BX(context,val) ((
void)((context)->Ebx = ((context)->Ebx & ~0xffff) | (WORD)(val)
))
#define SET_CX(context,val) ((
void)((context)->Ecx = ((context)->Ecx & ~0xffff) | (WORD)(val)
))
#define SET_DX(context,val) ((
void)((context)->Edx = ((context)->Edx & ~0xffff) | (WORD)(val)
))
#define SET_SI(context,val) ((
void)((context)->Esi = ((context)->Esi & ~0xffff) | (WORD)(val)
))
#define SET_DI(context,val) ((
void)((context)->Edi = ((context)->Edi & ~0xffff) | (WORD)(val)
))
#define SET_AL(context,val) ((
void)((context)->Eax = ((context)->Eax & ~0xff) | (BYTE)(val)
))
#define SET_BL(context,val) ((
void)((context)->Ebx = ((context)->Ebx & ~0xff) | (BYTE)(val)
))
#define SET_CL(context,val) ((
void)((context)->Ecx = ((context)->Ecx & ~0xff) | (BYTE)(val)
))
#define SET_DL(context,val) ((
void)((context)->Edx = ((context)->Edx & ~0xff) | (BYTE)(val)
))
#define SET_AH(context,val) ((
void)((context)->Eax = ((context)->Eax & ~0xff00) | (((BYTE)(val)) << 8)
))
#define SET_BH(context,val) ((
void)((context)->Ebx = ((context)->Ebx & ~0xff00) | (((BYTE)(val)) << 8)
))
#define SET_CH(context,val) ((
void)((context)->Ecx = ((context)->Ecx & ~0xff00) | (((BYTE)(val)) << 8)
))
#define SET_DH(context,val) ((
void)((context)->Edx = ((context)->Edx & ~0xff00) | (((BYTE)(val)) << 8)
))
#endif
/* __WINE_MISCEMU_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment