-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve stubs + remove obsolete shims
- Loading branch information
Showing
6 changed files
with
94 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.intel_syntax noprefix | ||
|
||
.global __fltused | ||
.set __fltused, 0x9876 | ||
|
||
.global __ldused | ||
.set __ldused, 0x9876 | ||
|
||
.global __except_list | ||
.set __except_list, 0 | ||
|
||
.section .text | ||
|
||
.global __aullshr | ||
__aullshr: | ||
cmp cl, 0x40 | ||
jae retzero | ||
cmp cl, 0x20 | ||
jae more32 | ||
shrd eax, edx, cl | ||
shr edx, cl | ||
ret | ||
more32: | ||
mov eax, edx | ||
xor edx, edx | ||
and cl, 0x1f | ||
shr eax, cl | ||
ret | ||
retzero: | ||
xor eax, eax | ||
xor edx, edx | ||
ret | ||
|
||
.end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.386 | ||
.model flat | ||
|
||
.code | ||
|
||
public __fltused | ||
__fltused equ 9876h | ||
|
||
public __ldused | ||
__ldused equ 9876h | ||
|
||
public __except_list | ||
__except_list equ 0 | ||
|
||
public __aullshr | ||
__aullshr PROC | ||
cmp cl, 40h | ||
jae retzero | ||
cmp cl, 20h | ||
jae more32 | ||
shrd eax, edx, cl | ||
shr edx, cl | ||
ret | ||
more32: | ||
mov eax, edx | ||
xor edx, edx | ||
and cl, 1Fh | ||
shr eax, cl | ||
ret | ||
retzero: | ||
xor eax, eax | ||
xor edx, edx | ||
ret | ||
__aullshr ENDP | ||
|
||
END |
Binary file not shown.