flat assembler
Message board for the users of flat assembler.
  
|  Index
      > DOS > VGA 3D Rotate Goto page Previous 1, 2, 3 Next | 
| Author | 
 | 
| Dex4u 23 Nov 2007, 15:05 Cool programs, they all run fine on MiniDos. | |||
|  23 Nov 2007, 15:05 | 
 | 
| edfed 23 Nov 2007, 22:44 really?
  | |||
|  23 Nov 2007, 22:44 | 
 | 
| DJ Mauretto 24 Nov 2007, 13:12 Hello    I written another example about 3D with translation   Have Fun!! | |||
|  24 Nov 2007, 13:12 | 
 | 
| 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? | |||
|  25 Nov 2007, 13:46 | 
 | 
| 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]  | |||
|  25 Nov 2007, 14:10 | 
 | 
| 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. | |||
|  25 Nov 2007, 14:27 | 
 | 
| DJ Mauretto 25 Nov 2007, 15:31 Please post some code or some formula,
 i show you an example computation with FPU  | |||
|  25 Nov 2007, 15:31 | 
 | 
| 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 | |||
|  25 Nov 2007, 16:26 | 
 | 
| 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.   | |||
|  25 Nov 2007, 16:27 | 
 | 
| Picnic 25 Nov 2007, 16:33 Great balls DJ Mauretto. | |||
|  25 Nov 2007, 16:33 | 
 | 
| 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.  | |||
|  25 Nov 2007, 17:33 | 
 | 
| Picnic 25 Nov 2007, 18:39 sorry i didn't mean it that way..   | |||
|  25 Nov 2007, 18:39 | 
 | 
| edfed 25 Nov 2007, 23:49 dj-mauretto:
 ok! look at this 
 | |||||||||||
|  25 Nov 2007, 23:49 | 
 | 
| 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 | |||
|  26 Nov 2007, 10:48 | 
 | 
| edfed 26 Nov 2007, 12:29 hé hé the use of fpu is at 3dobject.inc | |||
|  26 Nov 2007, 12:29 | 
 | 
| 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 | |||
|  26 Nov 2007, 14:52 | 
 | 
| 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. | |||
|  26 Nov 2007, 17:05 | 
 | 
| 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! | |||
|  26 Nov 2007, 17:54 | 
 | 
| 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? | |||
|  26 Nov 2007, 17:57 | 
 | 
| Goto page  Previous  1, 2, 3  Next < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.