/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
+#include <asm.inc>
-.intel_syntax noprefix
-.global MsgUnimplemented
+PUBLIC MsgUnimplemented
MsgUnimplemented:
.asciz "WARNING: %s at %s:%d is UNIMPLEMENTED!\n"
ret
.endp
+END
/* EOF */
/* INCLUDES ******************************************************************/
-#include <ndk/asm.h>
-.intel_syntax noprefix
+#include <asm.inc>
+#include <ksamd64.inc>
#define DISPOSITION_DISMISS 0
#define DISPOSITION_CONTINUE_SEARCH 1
_except_handler3:
ret
.endfunc
+
+END
* PROGRAMER: KJK::Hyperion <noog@libero.it>
*/
-#include <reactos/asm.h>
-#include <ndk/asm.h>
+#include <asm.inc>
+#include <ks386.inc>
+
#define PAGE_SIZE 4096
PUBLIC __chkstk
push ecx
/* ECX = top of the previous stack frame */
- lea eax, [esp + 8]
+ lea ecx, [esp + 8]
/* probe the desired memory, page by page */
cmp eax, PAGE_SIZE
- jge .l_MoreThanAPage
- jmp .l_LessThanAPage
+ jl .l_LessThanAPage
.l_MoreThanAPage:
/* INCLUDES ******************************************************************/
-#include <ndk/asm.h>
+#include <asm.inc>
+#include <ks386.inc>
-/* GLOBALS *******************************************************************/
-
-.globl __EH_prolog
+/* FUNCTIONS *****************************************************************/
+.code
+PUBLIC __EH_prolog
// Copied from Wine.
__EH_prolog:
- pushl $-1
- pushl %eax
- pushl %fs:0
- movl %esp, %fs:0
- movl 12(%esp), %eax
- movl %ebp, 12(%esp)
- leal 12(%esp), %ebp
- pushl %eax
+ push -1
+ push eax
+ push fs:0
+ mov fs:0, esp
+ mov eax, [esp + 12]
+ mov [esp + 12], ebp
+ lea ebp, [esp + 12]
+ push eax
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
+#include <asm.inc>
#define DISPOSITION_DISMISS 0
#define DISPOSITION_CONTINUE_SEARCH 1
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* DATA *********************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
/* Change fpu control word to round up */
fstcw [rsp + 8]
mov eax, [rsp + 8]
- or eax, 0x00800
- and eax, 0x0fbff
+ or eax, HEX(00800)
+ and eax, HEX(0fbff)
mov [rsp + 12], eax
fldcw [rsp + 12]
add rsp, 16
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
UNIMPLEMENTED exp
ret
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* FUNCTIONS ****************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
floor:
UNIMPLEMENTED floor
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* DATA *********************************************************************/
fmod:
UNIMPLEMENTED fmod
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* DATA *********************************************************************/
fmodf:
UNIMPLEMENTED fmodf
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* DATA *********************************************************************/
ldexp:
UNIMPLEMENTED ldexp
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* DATA *********************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
/* DATA *********************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* DATA *********************************************************************/
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* DATA *********************************************************************/
sqrt:
UNIMPLEMENTED sqrt
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* DATA *********************************************************************/
sqrtf:
sqrtss xmm0, xmm0
ret
+
+END
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
/* DATA *********************************************************************/
tan:
UNIMPLEMENTED tan
ret
+
+END
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __alldiv
PUBLIC __fltused
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __alldvrm
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __allmul
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __allrem
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __allshl
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __allshr
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _atan2
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _atan
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __aulldiv
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __aulldvrm
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __aullrem
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __aullshr
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _ceil
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
.code
.align 4
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _cos
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _exp
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _fabs
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _floor
* Danny Smith <dannysmith@users.sourceforge.net>
*/
-#include <reactos/asm.h>
+#include <asm.inc>
.code
.align 4
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _fmod
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _fmodf
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC __ftol
*
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _log10
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _log
02111-1307 USA. */
/* Reactos modifications */
-#include <reactos/asm.h>
+#include <asm.inc>
#define ALIGNARG(log2) log2
#define ASM_TYPE_DIRECTIVE(name,typearg)
PUBLIC _pow
- .data
- .text
-ASSUME CS:NOTHING, DS:NOTHING, ES:NOTHING, FS:NOTHING, GS:NOTHING
+.data
+ASSUME nothing
.align ALIGNARG(4)
ASM_TYPE_DIRECTIVE(infinity,@object)
#define MOX(op,x,f) op[x*f]
#endif
- .code
- .text
+.code
_pow:
fld qword ptr [esp + 12] // y
fxam
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _sin
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _sqrt
* SUCH DAMAGE.
*/
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tan
* FILE: lib/sdk/crt/mem/i386/memchr.s
*/
-#include <reactos/asm.h>
+#include <asm.inc>
+#include <ks386.inc>
/*
* void* memchr(const void* s, int c, size_t n)
/*
* void *memcpy (void *to, const void *from, size_t count)
*
- * NOTE: This code is a duplicate of memmove function from memmove_asm.s
*/
-#include <reactos/asm.h>
+#include <asm.inc>
+#include <ks386.inc>
PUBLIC _memcpy
PUBLIC _memmove
* $Id$
*/
-#include <reactos/asm.h>
+#include <asm.inc>
+#include <ks386.inc>
/*
* void *memset (void *src, int val, size_t count)
/* INCLUDES ******************************************************************/
-#include <reactos/asm.h>
-#include <ndk/amd64/asm.h>
+#include <asm.inc>
+#include <ksamd64.inc>
#define JUMP_BUFFER_Frame 0x00
#define JUMP_BUFFER_Rbx 0x08
inc rax
2: jmp r8
.endp longjmp
+
+END
* complete implementation
*/
-#include <reactos/asm.h>
-#include <ndk/asm.h>
+#include <asm.inc>
#define JB_BP 0
#define JB_BX 1
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcscat
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcschr
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcscmp
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcscpy
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcslen
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcsncat
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcsncmp
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcsncpy
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcsnlen
.code
*/
#include "tchar.h"
-#include <reactos/asm.h>
+#include <asm.inc>
PUBLIC _tcsrchr
.code