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
3209a0e6
Commit
3209a0e6
authored
Mar 13, 1999
by
Uwe Bonnes
Committed by
Alexandre Julliard
Mar 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make function BX=6 round ST0 to integer.
parent
73cc3ba1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
emulate.c
miscemu/emulate.c
+10
-0
No files found.
miscemu/emulate.c
View file @
3209a0e6
...
...
@@ -61,6 +61,15 @@ void WINAPI WIN87_fpmath( CONTEXT *context )
case
6
:
/* round top of stack to integer using method AX & 0x0C00 */
/* returns current controlword */
{
DWORD
dw
=
0
;
/* I don't know much about asm() programming. This could be
* wrong.
*/
__asm__
__volatile__
(
"frndint"
);
__asm__
__volatile__
(
"fist %0;wait"
:
"=m"
(
dw
)
:
:
"memory"
);
TRACE
(
int
,
"On top of stack is %ld
\n
"
,
dw
);
}
break
;
case
7
:
/* POP top of stack as integer into DX:AX */
...
...
@@ -98,6 +107,7 @@ void WINAPI WIN87_fpmath( CONTEXT *context )
break
;
default:
/* error. Say that loud and clear */
FIXME
(
int
,
"unhandled switch %d
\n
"
,
BX_reg
(
context
));
AX_reg
(
context
)
=
DX_reg
(
context
)
=
0xFFFF
;
break
;
}
...
...
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