3D ASM
3D ASM
Ok, so im beginning work on a 3D game and decided to create a custom ASM library for it. I figured it wouldnt be too hard until I remembered that I need to have floating point math in it or else it would be impossible. So how do you work with floating point numbers in ASM? Like adding, subtracting, multiplying, dividing, comparing, MOVing, ect...
- matt2jones
- Veteran
- Posts: 80
- Joined: Sat Feb 19, 2005 8:29 am
- Location: elsewhere
- Contact:
I think, but I am in no means sure, that the CPU can't handle floating point numbers. I think they're where you have to actually code in the asm for continuosly shifting and carry the decimal yourself. But I know next to nothing on the subject, and am just trying to remember what I once heard someone tell me.
matt
matt
Do not mistake Apathy for feeling Content.
http://www.disjointed.cjb.net - Short Storys
http://matt2jones.deviantart.com - Random Art
http://www.freewebs.com/matt2jones - WebComic
http://www.disjointed.cjb.net - Short Storys
http://matt2jones.deviantart.com - Random Art
http://www.freewebs.com/matt2jones - WebComic
Damn it! That was me...
Why does it log me out every time?
I think DrV is working on an Allegro port to FB_DOS... As far as I know that's as close as you'll get to ogl in dos. About the ASM thing... You might want to ask Lillo if it would even be worth it, and how to go about getting at the FPU. I know he hepled Rel out with his pixperfect collision routine for Space Impakto.
Why does it log me out every time?
I think DrV is working on an Allegro port to FB_DOS... As far as I know that's as close as you'll get to ogl in dos. About the ASM thing... You might want to ask Lillo if it would even be worth it, and how to go about getting at the FPU. I know he hepled Rel out with his pixperfect collision routine for Space Impakto.
The Dr. is INsane!!!
Lillo(Angelo Motolla) is the genius behind FB's gfx... He also created DirectQB.
Don't know what FB is? It's actually called FreeBASIC, by V1ctor. It's an open source 32 bit QB compatible compiler. Actually, that's an understatement. If you're a BASIC programer, then this is all your dreams come true. Here's the link for the FreeBASIC compiler forums. You can get ahold of Lillo there too...
http://www.freebasic.net/forum/index.php
Here's the link to the setup I prefer to use...
http://fbide.sourceforge.net/
Also...
OpenGL is an open source graphics library... to hell with DirectX. OpenGL is, and always will be the industry standard.
Don't know what FB is? It's actually called FreeBASIC, by V1ctor. It's an open source 32 bit QB compatible compiler. Actually, that's an understatement. If you're a BASIC programer, then this is all your dreams come true. Here's the link for the FreeBASIC compiler forums. You can get ahold of Lillo there too...
http://www.freebasic.net/forum/index.php
Here's the link to the setup I prefer to use...
http://fbide.sourceforge.net/
Also...
OpenGL is an open source graphics library... to hell with DirectX. OpenGL is, and always will be the industry standard.
The Dr. is INsane!!!
Re: 3D ASM
As far as I can remember, I did not use the FPU except in RelAngle. I used Fixpoint math in my 3d rasterizers. :*)Zamaster wrote:Ok, so im beginning work on a 3D game and decided to create a custom ASM library for it. I figured it wouldnt be too hard until I remembered that I need to have floating point math in it or else it would be impossible. So how do you work with floating point numbers in ASM? Like adding, subtracting, multiplying, dividing, comparing, MOVing, ect...