Jump to content

BASIC: Converting/Optimizing a simple BASIC program from another Commodore platform to the X16...


Recommended Posts

It is interesting, and not surprising at all! Transcendental functions take a lot more computational power than any algebraic expression.

A few years ago I tried submitting an obfuscated C program to ioccc.org. I didn't try to do any transcendentals with it, but I did try to replace all math with bit operations. It would be "interesting" to create a complete library of functions that performed all math & logic (bit manipulation, adds, subtracts, multiplies, divides, exponentiation, transcendentals) in terms of simple universal gates like nand or nor.

Not terribly useful from a software development perspective, but interesting.

Link to comment
Share on other sites

1 hour ago, Scott Robison said:

t would be "interesting" to create a complete library of functions that performed all math & logic (bit manipulation, adds, subtracts, multiplies, divides, exponentiation, transcendentals) in terms of simple universal gates like nand or nor.

That would be pretty rough.   I make typos enough that I cringe to think of debugging that.   

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