flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3 Next |
Author |
|
Dex4u
Cool programs, they all run fine on MiniDos.
|
|||
![]() |
|
edfed
really?
![]() |
|||
![]() |
|
DJ Mauretto
Hello
![]() I written another example about 3D with translation ![]() Have Fun!! |
|||
![]() |
|
edfed
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
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
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
Please post some code or some formula,
i show you an example computation with FPU ![]() |
|||
![]() |
|
AlexP
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
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
Great balls DJ Mauretto.
|
|||
![]() |
|
rhyno_dagreat
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
sorry i didn't mean it that way..
![]() |
|||
![]() |
|
edfed
dj-mauretto:
ok! look at this
|
|||||||||||
![]() |
|
DJ Mauretto
![]() ![]() ![]() I mean simply formula to show you use of FPU ,not whole programs ![]() I don't have time to look at your source |
|||
![]() |
|
edfed
hé hé the use of fpu is at 3dobject.inc
|
|||
![]() |
|
DJ Mauretto
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
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
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
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.