mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
48ecbd9104
It is added makefile for compilation of programs under KolibriOS with the help gcc. git-svn-id: svn://kolibrios.org@696 a494cfbc-eb01-0410-851d-a64ba20cac60
30 lines
294 B
NASM
30 lines
294 B
NASM
|
|
format ELF
|
|
include 'proc32.inc'
|
|
section '.text' executable
|
|
|
|
public floorf
|
|
|
|
floorf:
|
|
|
|
push ebp
|
|
mov ebp,esp
|
|
sub esp,8
|
|
|
|
fstcw [ebp-12]
|
|
mov dx,word[ebp-12]
|
|
or dx,0x0400
|
|
and dx,0xf7ff
|
|
mov word[ebp-16],dx
|
|
fldcw [ebp-16]
|
|
|
|
fld dword[ebp+8]
|
|
frndint
|
|
|
|
fldcw [ebp-12]
|
|
|
|
leave
|
|
|
|
ret
|
|
|