Jump to content

Fast Math in assembly language


Recommended Posts

On 6/23/2022 at 11:43 AM, desertfish said:

FIFTY functions?   Wowwwww!

Also. Does the library use 65C02 instructions? Or is it usable on 6502 as well?

65c02 only, because I'm using the BBR/BBS commands.  And although there are 50, quite often there's only small differences, such as a 2d vector version and a 3d vector version. 

  • Thanks 1
Link to comment
Share on other sites

On 6/23/2022 at 2:28 PM, Fabio said:

i have read your work : it's impressive but i have a doubt:what's the use of "fabs" lookup table ? given that it can be calculated as

eor FF

inc A

 If you've got the value in A, and you've already determined that it's negative (bit 7 = 1), then that works. The FABS table just avoids having to do the compare and branch, saving a few cycles. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use