flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3 Next |
Author |
|
Dex4u 23 Nov 2007, 15:05
Cool programs, they all run fine on MiniDos.
|
|||
![]() |
|
edfed 23 Nov 2007, 22:44
really?
![]() |
|||
![]() |
|
DJ Mauretto 24 Nov 2007, 13:12
Hello
![]() I written another example about 3D with translation ![]() Have Fun!! |
|||
![]() |
|
edfed 25 Nov 2007, 13:46
how to use dwords as integers,
and convert integers into fp? add integers to fp? imul fp with integers? idiv fp with integers? |
|||
![]() |
|
DJ Mauretto 25 Nov 2007, 14:10
Quote: convert integers into fp? Code: FILD [Variable] FPU automatic convert in float point. Quote: add integers to fp? Code: FIADD [IntegerVariable] FIMUL [IntegerVariable] FIDIV [IntegerVariable] ![]() |
|||
![]() |
|
edfed 25 Nov 2007, 14:27
for exemple :
int 1000->fp 10^3 int 1->fp 1 it works????? in this case i'll try to make fp computation in my engine. it's in 32 bit fixed point and does have a limit that is a bug. |
|||
![]() |
|
DJ Mauretto 25 Nov 2007, 15:31
Please post some code or some formula,
i show you an example computation with FPU ![]() |
|||
![]() |
|
AlexP 25 Nov 2007, 16:26
WOw.. Nice job.. Didn't even know that kind of stuff could be created in asm, but then again I have never tried any 3D graphics.. Have fun
|
|||
![]() |
|
bitRAKE 25 Nov 2007, 16:27
Cool juggling like effect with the balls - kind of seem like they are sliding on an imaginary glass surface. Can't wait to see what you can do with more colors.
![]() |
|||
![]() |
|
Picnic 25 Nov 2007, 16:33
Great balls DJ Mauretto.
|
|||
![]() |
|
rhyno_dagreat 25 Nov 2007, 17:33
thimis wrote: Great balls DJ Mauretto. I apologize for my lack of professionalism in this post, but for some reason that sounds so wrong. Lol. ![]() |
|||
![]() |
|
Picnic 25 Nov 2007, 18:39
sorry i didn't mean it that way..
![]() |
|||
![]() |
|
edfed 25 Nov 2007, 23:49
dj-mauretto:
ok! look at this
|
|||||||||||
![]() |
|
DJ Mauretto 26 Nov 2007, 10:48
![]() ![]() ![]() I mean simply formula to show you use of FPU ,not whole programs ![]() I don't have time to look at your source |
|||
![]() |
|
edfed 26 Nov 2007, 12:29
hé hé the use of fpu is at 3dobject.inc
|
|||
![]() |
|
DJ Mauretto 26 Nov 2007, 14:52
OK
![]() you first must decide if use integer or float point,then only instruction that you need are: Code: FILD [integerVariable] ;load integer variable from memory FLD [floatVariable] ;load float point variable from memory FIMUL [integerVariable] ; mutiply st with integer variable in memory FMUL [floatVariable] ;multiply st with float point variable in memory FIDIV [integerVariable] ;divide st with integer variable in memory FDIV [floatVariable] ;divide st with float point variable in memory FSINCOS ;cos ST sin ST FIADD FADD FISUB FSUB FLDPI ; load constant PI FLDZ ; load zero FLD1 ; load 1 etc... Note that you can work with FPU stack,with more speed Why you don't learn some FPU stuff like this? http://www.website.masmforum.com/tutorials/fptute/index.html |
|||
![]() |
|
edfed 26 Nov 2007, 17:05
fsincos is based on PI?
thanks i'll try i need finit? all fp instruction push / pop the fp stack; thats why i didn't use it. |
|||
![]() |
|
edfed 26 Nov 2007, 17:54
grrrrr it's hard to code with fpu
i never know where are my datas. it's buggy,each time i add a fpu instruction, my program becomes more buggy. nothing appears now! i'll see that very later! |
|||
![]() |
|
DJ Mauretto 26 Nov 2007, 17:57
Quote: fsincos is based on PI? FSINCOS is based on Angle in radian loaded on ST Radian = Degree*PI/180 Quote: i need finit? Only at start for init Coprocessor Quote: all fp instruction push / pop the fp stack; thats why i didn't use it. ![]() What is the problem with FPU Stack? |
|||
![]() |
|
Goto page Previous 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.