### Author Topic: fixed point math ??? implementation with assembly , 3D graphics projection , 2D  (Read 907 times)

#### iudestination0

• Regular Member
• Posts: 1
##### fixed point math ??? implementation with assembly , 3D graphics projection , 2D
« on: November 20, 2020, 03:21:32 AM »
hi guys! brand new to MASM, although I am learning MARS MIPS & C89 in conjunction,
would you guys have some books, or some good tutorials to FPM [fixed point math]? learning assm is because I want to learn to program games for a mips editor thats for the PS1.
would like to project 3D graphics , 2D sprites and what not.  although it's probably not easy , im still looking for a challenge.  any book or video related to the topics above , would be appreciated!!!

#### jj2007

• Member
• Posts: 11552
• Assembler is fun ;-)
##### Re: fixed point math ??? implementation with assembly , 3D graphics projection , 2D
« Reply #1 on: November 20, 2020, 04:41:39 AM »
Hi iudestination0,

Welcome to the Forum

I am not aware of any books on fixed point math, but the principle is very simple: multiply your floats with 100 to get two digits after the comma, then do the math with the resulting integers. Afterwards, divide the result by 100, 10000, 1000000 etc depending on the operations performed.

#### caballero

• Member
• Posts: 1617
• Matrix - Noah
##### Re: fixed point math ??? implementation with assembly , 3D graphics projection , 2D
« Reply #2 on: November 20, 2020, 04:57:45 AM »
The logic of the error is hidden among the most unexpected lines of the program

#### raymond

• Member
• Posts: 261
##### Re: fixed point math ??? implementation with assembly , 3D graphics projection , 2D
« Reply #3 on: November 20, 2020, 05:33:15 AM »
Fpr whatever it may be worth, you may want to have a look at the following (it could be what you are looking for):

http://www.ray.masmcode.com/fixmath.html
Whenever you assume something, you risk being wrong half the time.
http://www.ray.masmcode.com/